diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index d58d7db982896..d7585353acb45 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -32,6 +32,7 @@ - `DropdownMenuV2`: invert animation direction. ([#63443](https://github.com/WordPress/gutenberg/pull/63443)). - `Tabs`: Vertical Tabs should be 40px min height. ([#63446](https://github.com/WordPress/gutenberg/pull/63446)). - `ColorPicker`: Use `minimal` variant for `SelectControl` ([#63676](https://github.com/WordPress/gutenberg/pull/63676)). +- `Tabs`: keep full opacity of focus ring and remove hover styles on disabled tabs ([#63754](https://github.com/WordPress/gutenberg/pull/63754)). ### Documentation diff --git a/packages/components/src/tabs/styles.ts b/packages/components/src/tabs/styles.ts index 7d67f462c7e87..ddad0f7b2d767 100644 --- a/packages/components/src/tabs/styles.ts +++ b/packages/components/src/tabs/styles.ts @@ -76,13 +76,14 @@ export const Tab = styled( Ariakit.Tab )` font-weight: 500; text-align: inherit; hyphens: auto; + color: ${ COLORS.theme.foreground }; &[aria-disabled='true'] { cursor: default; - opacity: 0.3; + color: ${ COLORS.ui.textDisabled }; } - &:hover { + &:not( [aria-disabled='true'] ):hover { color: ${ COLORS.theme.accent }; }