Skip to content

Commit

Permalink
TabPanel: Add 40px size prop to tab Button (WordPress#66557)
Browse files Browse the repository at this point in the history
* TabPanel: Add 40px size prop to tab Button

* Add changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent 26123cd commit 7714bce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
### Internal

- ESLint: Stop disabling `react-hooks/exhaustive-deps` rule ([#66324](https://github.com/WordPress/gutenberg/pull/66324)).
- `TabPanel`: Add 40px size prop to tab Button ([#66557](https://github.com/WordPress/gutenberg/pull/66557)).

## 28.10.0 (2024-10-16)

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/tab-panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ const UnforwardedTabPanel = (
) }-view` }
render={
<Button
__next40pxDefaultSize
icon={ tab.icon }
label={ tab.icon && tab.title }
showTooltip={ !! tab.icon }
Expand Down
4 changes: 1 addition & 3 deletions packages/components/src/tab-panel/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
}
}

// This tab style CSS is duplicated verbatim in
// /packages/edit-post/src/components/sidebar/settings-header/style.scss
.components-tab-panel__tabs-item {
position: relative;
border-radius: 0;
height: $grid-unit-60;
height: $grid-unit-60 !important; // https://github.com/WordPress/gutenberg/pull/65075#discussion_r1746282734
background: transparent;
border: none;
box-shadow: none;
Expand Down

0 comments on commit 7714bce

Please sign in to comment.