Skip to content

Commit

Permalink
Add a media query for vertical tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jul 12, 2024
1 parent f9047e3 commit 39b622d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ export const Tab = styled( Ariakit.Tab )`
}
[aria-orientation='vertical'] & {
min-height: ${ space(
10
) }; // Avoid fixed height to allow for long strings that go in multiple lines.
@media ( min-width: 782px ) {
min-height: ${ space(
10
) }; // Avoid fixed height to allow for long strings that go in multiple lines.
}
}
`;

Expand Down

0 comments on commit 39b622d

Please sign in to comment.