Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have mentioned — applying a className to Tabs doesn't make any sense because Tabs doesn't render any element to the DOM (and doesn't accept a className prop at all)

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