Skip to content

Commit 9b75e1d

Browse files
committed
Checkboxradio: add visual focus outline to checkbox and radio buttons
This adds a focus outline matching that roughly from chrome osx
1 parent 3048549 commit 9b75e1d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

themes/base/theme.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ a.ui-button:focus {
9898
color: #2b2b2b/*{fcHover}*/;
9999
text-decoration: none;
100100
}
101+
.ui-visual-focus {
102+
box-shadow: 0 0 3px 1px rgb(94, 158, 214);
103+
}
101104
.ui-state-active,
102105
.ui-widget-content .ui-state-active,
103106
.ui-widget-header .ui-state-active,

ui/checkboxradio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ $.widget( "ui.checkboxradio", {
117117
this._on({
118118
"change": "_toggleClasses",
119119
"focus": function() {
120-
this.label.addClass( "ui-state-focus" );
120+
this.label.addClass( "ui-state-focus ui-visual-focus" );
121121
},
122122
"blur": function() {
123-
this.label.removeClass( "ui-state-focus" );
123+
this.label.removeClass( "ui-state-focus ui-visual-focus" );
124124
}
125125
});
126126
},

0 commit comments

Comments
 (0)