Skip to content

Commit 41a9050

Browse files
committed
hide focus on traps
1 parent d39be04 commit 41a9050

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/components/Dialog/dialog.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ $eccgui-color-modal-backdrop: eccgui-color-rgba(
2222
z-index: $eccgui-zindex-modals;
2323
}
2424

25+
.#{$ns}-overlay-start-focus-trap,
26+
.#{$ns}-overlay-end-focus-trap {
27+
// do not show focus on trap elements, we need to fix keeping focus on modal elements differently later
28+
&[tabindex]:not([tabindex^="-"]):focus-visible {
29+
@extend .focus-by-pointer;
30+
}
31+
}
32+
2533
.#{$eccgui}-dialog__backdrop {
2634
background-color: $eccgui-color-modal-backdrop;
2735
}

0 commit comments

Comments
 (0)