️(a11y) fix focus ring on tab container components

Suppress inherited global focus ring on Tabs, TabList, and TabPanel containers.
This commit is contained in:
Cyril
2026-02-24 14:24:22 +01:00
parent 6f77559633
commit 259b739160
3 changed files with 10 additions and 2 deletions

View File

@@ -21,6 +21,8 @@ and this project adheres to
- 🚚(frontend) rename "wellknown" directory to "well-known" #1009 - 🚚(frontend) rename "wellknown" directory to "well-known" #1009
- 🌐(frontend) localize SR modifier labels #1010 - 🌐(frontend) localize SR modifier labels #1010
- ⬆️(backend) update python dependencies #1011 - ⬆️(backend) update python dependencies #1011
- ♿️(a11y) fix focus ring on tab container components
## [1.8.0] - 2026-02-20 ## [1.8.0] - 2026-02-20

View File

@@ -41,6 +41,7 @@ const tabListContainerStyle = css({
flexDirection: 'column', flexDirection: 'column',
borderRight: '1px solid lightGray', // fixme poor color management borderRight: '1px solid lightGray', // fixme poor color management
paddingY: '1rem', paddingY: '1rem',
paddingLeft: '0.2rem',
paddingRight: '1.5rem', paddingRight: '1.5rem',
}) })

View File

@@ -24,6 +24,9 @@ const StyledTabs = styled(RACTabs, {
flexDirection: 'row', flexDirection: 'row',
'--vertical': '3px', '--vertical': '3px',
}, },
'&[data-focus-visible]': {
outline: 'none!',
},
}, },
}) })
@@ -102,6 +105,9 @@ const StyledTabList = styled(RACTabList, {
'&[data-orientation=vertical]': { '&[data-orientation=vertical]': {
flexDirection: 'column', flexDirection: 'column',
}, },
'&[data-focus-visible]': {
outline: 'none!',
},
}, },
variants: { variants: {
border: { border: {
@@ -147,9 +153,8 @@ const StyledTabPanel = styled(RACTabPanel, {
base: { base: {
marginTop: '4px', marginTop: '4px',
borderRadius: '4px', borderRadius: '4px',
outline: 'none',
'&[data-focus-visible]': { '&[data-focus-visible]': {
outline: '2px solid red', outline: 'none!',
}, },
}, },
variants: { variants: {