Skip to content

Commit

Permalink
fix(ui): remove focus styles at Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
matochu committed Nov 14, 2023
1 parent 91ef0da commit c203ec4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/ui/src/Tabs/Tab.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

&.selected {
color: c.$colorPrimary;
border-radius: none;
border-radius: 0;
border-color: c.$colorPrimary;
box-shadow: inset 0 -4px 0 0 c.$colorPrimary;
}
Expand All @@ -42,15 +42,4 @@
&:hover {
color: c.$colorPrimary;
}

&:focus {
// Do not remove outline for high-contrast modes
// https://stackoverflow.com/a/52616313
outline: c.$outlineWidth solid transparent;
color: c.$colorPrimary;
border-radius: c.$borderRadius;
border-color: transparent;

@include h.outlineSimple;
}
}

0 comments on commit c203ec4

Please sign in to comment.