Skip to content

Commit

Permalink
Switch to adding top/bottom padding to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieyan committed Dec 14, 2024
1 parent c84e005 commit 64cf950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/tabs/tabs.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
--reactist-tab-track-border-width: 2px;
--reactist-tab-border-radius: 20px;
--reactist-tab-border-width: 1px;
--reactist-tab-height: 30px;
--reactist-tab-padding-x: var(--reactist-spacing-medium);
--reactist-tab-padding-y: var(--reactist-spacing-small);
--reactist-tab-line-height: 21px;
}

.tab {
box-sizing: border-box;
padding: 0 var(--reactist-spacing-medium);
padding: var(--reactist-tab-padding-y) var(--reactist-tab-padding-x);
border: none;
background: none;
cursor: pointer;
font-size: var(--reactist-font-size-body);
font-weight: var(--reactist-font-weight-medium);
line-height: var(--reactist-tab-line-height);
min-height: var(--reactist-tab-height);
z-index: 1;
text-decoration: none;
border: var(--reactist-tab-border-width) solid transparent;
Expand Down
4 changes: 3 additions & 1 deletion src/tabs/tabs.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ Their size can also be customized with:
--reactist-tab-track-border-width
--reactist-tab-border-radius
--reactist-tab-border-width
--reactist-tab-height
--reactist-tab-padding-x
--reactist-tab-padding-y
--reactist-tab-line-height
```

## Stories
Expand Down

0 comments on commit 64cf950

Please sign in to comment.