Skip to content

Commit

Permalink
fix(a11y): focus selector for tabs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniele T. <Fupete@users.noreply.github.com>
  • Loading branch information
astagi and Fupete authored Nov 13, 2023
1 parent 8489cda commit ef4d561
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/scss/custom/_tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
border-right: 2px solid transparent;
white-space: normal;
position: relative;
&:focus:not(.focus--mouse) {
box-shadow: inset 0 0px 0 2px $focus-outline-color !important;
}
&:hover {
border-bottom: none;
}
Expand Down Expand Up @@ -114,8 +117,8 @@
border-bottom-color: transparent;
}

&:focus {
border-bottom-color: transparent;
&:focus:not(.focus--mouse) {
box-shadow: inset 0 1px 0 2px $focus-outline-color !important;
}

&.disabled {
Expand Down Expand Up @@ -327,6 +330,9 @@
.nav-link {
border-bottom: none;
border-top: 2px solid transparent;
&:focus:not(.focus--mouse) {
box-shadow: inset 0 -1px 0 2px $focus-outline-color !important;
}
}
.nav-link.active,
.nav-item.show .nav-link {
Expand Down Expand Up @@ -354,6 +360,9 @@
border-bottom: none;
border-right: none;
border-left: 2px solid transparent;
&:focus:not(.focus--mouse) {
box-shadow: inset 0px 0px 0 2px $focus-outline-color !important;
}
&:hover {
border-bottom: none;
}
Expand Down

0 comments on commit ef4d561

Please sign in to comment.