File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
src/Umbraco.Web.UI.Client/src
common/directives/components/forms Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 29
29
var defaultFocusedElement = getAutoFocusElement ( focusableElements ) ;
30
30
var firstFocusableElement = focusableElements [ 0 ] ;
31
31
var lastFocusableElement = focusableElements [ focusableElements . length - 1 ] ;
32
-
33
- // We need to add the tabbing-active class in order to highlight the focused button since the default style is
34
- // outline: none; set in the stylesheet specifically
35
- bodyElement . classList . add ( 'tabbing-active' ) ;
36
32
37
33
// If there is no default focused element put focus on the first focusable element in the nodelist
38
34
if ( defaultFocusedElement === null ) {
Original file line number Diff line number Diff line change 15
15
right : 0 ;
16
16
border-radius : 3px ;
17
17
box-shadow : 0 0 2px 0px @ui-outline , inset 0 0 2px 2px @ui-outline ;
18
+ pointer-events : none ;
18
19
}
19
20
}
20
21
Original file line number Diff line number Diff line change @@ -308,7 +308,14 @@ select[size] {
308
308
input [type= " file" ],
309
309
input [type= " radio" ],
310
310
input [type= " checkbox" ] {
311
- .umb-outline ();
311
+ & :focus {
312
+ border-color : @inputBorderFocus ;
313
+ outline : 0 ;
314
+
315
+ .tabbing-active & {
316
+ outline : 2px solid @ui-outline ;
317
+ }
318
+ }
312
319
}
313
320
314
321
You can’t perform that action at this time.
0 commit comments