Skip to content

Commit

Permalink
Tabs: fix animation timings (WordPress#66198)
Browse files Browse the repository at this point in the history
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
4 people authored Oct 17, 2024
1 parent f83c592 commit ff1d114
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function CategoryTabs( {

return (
<Tabs
className="block-editor-inserter__category-tabs"
selectOnMove={ false }
selectedTabId={ selectedCategory ? selectedCategory.name : null }
orientation="vertical"
Expand Down
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fixes

- `Tabs`: fix indicator animation ([#66198](https://github.com/WordPress/gutenberg/pull/66198)).
- `ColorPalette`: prevent overflow of custom color button background ([#66152](https://github.com/WordPress/gutenberg/pull/66152)).

### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const Tab = styled( Ariakit.Tab )`
opacity: 0;
@media not ( prefers-reduced-motion ) {
transition: opacity 0.15s 0.15s linear;
transition: opacity 0.1s linear;
}
}
Expand Down Expand Up @@ -253,7 +253,7 @@ export const TabChevron = styled( Icon )`
[data-select-on-move='true']
[role='tab']:is( [aria-selected='true'], )
& {
transition: opacity 0.3s ease-in;
transition: opacity 0.15s 0.15s linear;
}
}
&:dir( rtl ) {
Expand Down

0 comments on commit ff1d114

Please sign in to comment.