Skip to content

Commit 6e2bbca

Browse files
committed
Theme: Add visual focus outline for checkbox and radio buttons
This adds a focus outline matching that roughly from chrome osx
1 parent 25d0c85 commit 6e2bbca

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

themes/base/theme.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
.ui-widget-content .ui-state-default,
5656
.ui-widget-header .ui-state-default,
5757
.ui-button,
58+
59+
/* We use html here because we need a greater specificity to make sure disabled
60+
works properly when clicked or hovered */
5861
html .ui-button.ui-state-disabled:hover,
5962
html .ui-button.ui-state-disabled:active {
6063
border: 1px solid #c5c5c5/*{borderColorDefault}*/;
@@ -98,6 +101,11 @@ a.ui-button:focus {
98101
color: #2b2b2b/*{fcHover}*/;
99102
text-decoration: none;
100103
}
104+
105+
/* This cant be configured with themeroller because its new may end up added later */
106+
.ui-visual-focus {
107+
box-shadow: 0 0 3px 1px rgb(94, 158, 214);
108+
}
101109
.ui-state-active,
102110
.ui-widget-content .ui-state-active,
103111
.ui-widget-header .ui-state-active,
@@ -196,7 +204,8 @@ a.ui-button:active,
196204
.ui-state-hover .ui-icon,
197205
.ui-state-focus .ui-icon,
198206
.ui-button:hover .ui-icon,
199-
.ui-button:focus .ui-icon {
207+
.ui-button:focus .ui-icon,
208+
.ui-state-default .ui-icon {
200209
background-image: url("images/ui-icons_555555_256x240.png")/*{iconsHover}*/;
201210
}
202211
.ui-state-active .ui-icon,

0 commit comments

Comments
 (0)