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 2929 var defaultFocusedElement = getAutoFocusElement ( focusableElements ) ;
3030 var firstFocusableElement = focusableElements [ 0 ] ;
3131 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' ) ;
3632
3733 // If there is no default focused element put focus on the first focusable element in the nodelist
3834 if ( defaultFocusedElement === null ) {
Original file line number Diff line number Diff line change 1515 right : 0 ;
1616 border-radius : 3px ;
1717 box-shadow : 0 0 2px 0px @ui-outline , inset 0 0 2px 2px @ui-outline ;
18+ pointer-events : none ;
1819 }
1920 }
2021
Original file line number Diff line number Diff line change @@ -308,7 +308,14 @@ select[size] {
308308input [type= " file" ],
309309input [type= " radio" ],
310310input [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+ }
312319}
313320
314321
You can’t perform that action at this time.
0 commit comments