Skip to content

Commit

Permalink
Fix z-index issue in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Nov 28, 2024
1 parent cc199b4 commit 0169ac6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion libs/core/src/scss/interaction-state/_focus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,4 @@
#{$shadow},
0 0 0 $gap #{utils.get-color('background-color')},
0 0 0 $gap + $stroke-width utils.$focus-ring-color;
z-index: utils.z('default');
}
5 changes: 5 additions & 0 deletions libs/designsystem/calendar/src/calendar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ td {
height: $day-width;
margin: utils.size('xxxs') 0;
font-size: utils.font-size('n');

&:focus {
// In narrow viewport day buttons can be completely side by side. This makes sure the focus outline appears on top of adjacent buttons.
z-index: utils.z('default');
}
}

button[aria-disabled='true'] {
Expand Down

0 comments on commit 0169ac6

Please sign in to comment.