Skip to content

Commit

Permalink
Focus on list group
Browse files Browse the repository at this point in the history
  • Loading branch information
MewenLeHo authored and louismaximepiton committed Aug 30, 2022
1 parent 611e883 commit 001e631
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scss/_list-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@
color: var(--#{$prefix}list-group-action-color);
text-align: inherit; // For `<button>`s (anchors inherit)
outline-offset: $spacer; // Boosted mod
@include transition($transition-focus); // Boosted mod

// Hover state
&:hover,
&:focus {
&:hover{
z-index: 1; // Place hover/focus items above their siblings for proper border styling
color: var(--#{$prefix}list-group-action-hover-color);
text-decoration: none;
Expand All @@ -66,6 +64,12 @@
// Boosted mod: no background change
}

&:focus {
&[data-focus-visible-added] {
@include focus-visible();
}
}

&:active {
color: var(--#{$prefix}list-group-action-active-color);
background-color: var(--#{$prefix}list-group-action-active-bg);
Expand Down

0 comments on commit 001e631

Please sign in to comment.