-
Notifications
You must be signed in to change notification settings - Fork 7
update CounterLabel styling & add Tab icon #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| import clsx from 'clsx'; | ||
| import { ThemeVariable } from '../../types'; | ||
| import { Icon } from '../Icon'; | ||
| import type { TabProps } from './types'; | ||
|
|
||
| export const Tab = ({ onClick, title, active }: TabProps) => { | ||
| export const Tab = ({ onClick, title, active, icon }: TabProps) => { | ||
| return ( | ||
| <div | ||
| className={clsx('tab', { | ||
|
|
@@ -10,7 +12,10 @@ export const Tab = ({ onClick, title, active }: TabProps) => { | |
| onClick={onClick} | ||
| > | ||
| <div className="line"></div> | ||
| <p className="title">{title}</p> | ||
| <div className="title"> | ||
| {icon && <Icon icon={icon} size={16} staticColor={ThemeVariable.FgAttention} />} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be explicit bool check, use isPresent
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bcs |
||
| {title} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. render text it in p or span tag. |
||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,10 @@ | |
| font: var(--t-body-sm-500); | ||
| color: var(--color); | ||
| text-align: center; | ||
| display: flex; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. restrict row flow to no-wrap |
||
| align-items: center; | ||
| justify-content: center; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. flex-start |
||
| column-gap: var(--spacing-xs); | ||
|
|
||
| @include animate(color); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In design it's clearly xss-500, so use it.