event-editor/multi-choice: Add focus ring around the entire widget

The current behavior of the widget makes it so keyboard focus
outlines the toggle button rather than the entire widget. In some
cases, the outline touches the edges of the label, which makes it
look cramped.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/616>
This commit is contained in:
Hari Rana
2025-07-19 17:55:11 -04:00
parent 561efd2eb8
commit 576c82b060
3 changed files with 34 additions and 3 deletions
+15 -1
View File
@@ -78,10 +78,23 @@ popover.event-popover > contents {
/* Date chooser */
/* month/year controls */
datechooser navigator { /* add some space between the two controls */
datechooser navigator {
/* add some space between the two controls */
margin-right: 6px;
margin-left: 6px;
margin-bottom: 6px;
outline: 0 solid transparent;
border-radius: 9px;
outline-offset: 6px;
transition: var(--focus-ring-transition);
}
datechooser navigator:focus:focus-visible {
outline-color: var(--focus-ring-color);
outline-width: 2px;
outline-offset: 0px;
}
datechooser navigator label {
@@ -90,6 +103,7 @@ datechooser navigator label {
datechooser navigator button {
padding: 0;
outline: unset;
}
/* week numbers, with a style resembling GNOME Shell's */