Skip to content

Commit

Permalink
OEL-3404: Badges focus state.
Browse files Browse the repository at this point in the history
[skip chromatic]
  • Loading branch information
tibi2303 committed Oct 24, 2024
1 parent a16de8d commit 1d2e455
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions src/themes/default/src/scss/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

a.badge {
text-decoration: none;
&:focus-visible {
outline: none;
&:focus {
outline: 2px solid $white;
outline-offset: -3px;
}
}

Expand Down Expand Up @@ -63,27 +64,5 @@ a.badge {
background-color: shade-color($value, 15%) !important;
}
}
&.text-bg-#{$color} {
&:focus {
@if $enable-shadows {
@include box-shadow(
$btn-box-shadow,
0 0 0 $btn-focus-width
rgba(mix(color-contrast($value), $value, 15%), 0.5)
);
} @else {
box-shadow: 0
0
0
$btn-focus-width
rgba(mix(color-contrast($value), $value, 15%), 0.5);
}
}
}
&.badge-outline-#{$color} {
&:focus {
box-shadow: 0 0 0 $btn-focus-width rgba($value, 0.5);
}
}
}
}

0 comments on commit 1d2e455

Please sign in to comment.