Skip to content

Commit

Permalink
Make all vertically oriented tabs have a min height of 40px
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jul 12, 2024
1 parent 00fb50c commit 09429f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ $block-inserter-tabs-height: 44px;
display: block;
position: relative;
height: auto;
min-height: 40px;

&[aria-selected="true"] {
color: var(--wp-admin-theme-color);
Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ export const Tab = styled( Ariakit.Tab )`
opacity: 1;
}
}
[aria-orientation='vertical'] & {
min-height: ${ space(
10
) }; // Avoid fixed height to allow for long strings that go in multiple lines.
}
`;

export const TabPanel = styled( Ariakit.TabPanel )`
Expand Down

0 comments on commit 09429f2

Please sign in to comment.