Skip to content

Commit

Permalink
fix: add focused styling to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuth committed Nov 29, 2023
1 parent ac8a72b commit 8fabdb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`<Tabs /> Default story renders snapshot 1`] = `
>
<button
aria-selected="true"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected css-17rzz1x-MuiButtonBase-root-MuiTab-root"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected css-1jnyyyh-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="0"
type="button"
Expand All @@ -26,7 +26,7 @@ exports[`<Tabs /> Default story renders snapshot 1`] = `
</button>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-17rzz1x-MuiButtonBase-root-MuiTab-root"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-1jnyyyh-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/core/Tabs/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export const StyledTab = styled(RawTab, {
color: black;
}
&.Mui-focusVisible {
outline: 5px auto Highlight;
outline: 5px auto -webkit-focus-ring-color;
}
&.Mui-selected {
color: black;
Expand Down

0 comments on commit 8fabdb6

Please sign in to comment.