Skip to content

Commit acaf194

Browse files
Merge branch 'v8/8.11' into v8/8.12
2 parents 73439d4 + 15923aa commit acaf194

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbfocuslock.directive.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
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 ){

src/Umbraco.Web.UI.Client/src/less/application/umb-outline.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
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

src/Umbraco.Web.UI.Client/src/less/forms.less

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,14 @@ select[size] {
308308
input[type="file"],
309309
input[type="radio"],
310310
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+
}
312319
}
313320

314321

0 commit comments

Comments
 (0)