Skip to content

Commit

Permalink
console: Update tabs component
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Jan 15, 2024
1 parent fc35596 commit e1f2245
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/webui/components/tabs/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const WithIcons = () => {
{ title: 'Data', name: 'data', icon: 'data' },
]

return <Example tabs={tabs} active={tabs[0].name} narrow />
return <Example tabs={tabs} active={tabs[0].name} divider />
}

WithIcons.story = {
Expand Down
9 changes: 6 additions & 3 deletions pkg/webui/components/tabs/tab/tab.styl
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@

.tab-item
display: flex
align-items: center
white-space: nowrap
padding: $cs.m $cs.l
padding: $cs.m
gap: $cs.s
text-align: center
position: relative
cursor: pointer
user-select: none
transition: color $ad.xs
color: #929196

&-narrow
padding: $cs.s $cs.m
Expand All @@ -37,8 +40,8 @@
opacity: .4

&-default:not(.tab-item-active)
pseudo-border-animated(3px, $c-divider)
pseudo-border-animated(3px, #1E5DFF)

&-active
pseudo-border(3px, $c-active-blue)
color: $tc-active
color: #29292B
5 changes: 1 addition & 4 deletions pkg/webui/components/tabs/tabs.styl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@
&::-webkit-scrollbar
display: none

.icon
margin-right: $cs.xs

.divider
border-normal('bottom')
border-bottom: 1px solid #E8E7EC
2 changes: 1 addition & 1 deletion pkg/webui/styles/variables/generic.styl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ $br = {
's': 0.4rem,
'm': 0.5rem,
'l': 0.75rem,
'xl': 0.9rem,
'xl': 1rem,
'xxl': 1.25rem,
'xl3': 3rem
}
Expand Down

0 comments on commit e1f2245

Please sign in to comment.