-
Notifications
You must be signed in to change notification settings - Fork 20
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
plasma-new-hope: Refactoring tabs tokens, variations, config #873
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { css } from '@linaria/core'; | ||
|
||
import { tokens } from '../../../Tabs.tokens'; | ||
|
||
export const base = css` | ||
box-shadow: inset 0 calc(var(${tokens.underlineHeight}) * -1) 0 var(${tokens.underlineColor}); | ||
font-weight: var(${tokens.fontWeight}); | ||
color: var(${tokens.color}); | ||
|
||
:hover { | ||
color: var(${tokens.colorHover}); | ||
cursor: var(${tokens.cursor}); | ||
} | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
"--plasma-tabs-underline-height", | ||
"--plasma-tabs-underline-color", | ||
"--plasma-tabs-font-weight", | ||
"--plasma-tabs-font-color", | ||
"--plasma-tabs-font-color-hover", | ||
"--plasma-tabs-cursor" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const tokens = { | ||
disabledOpacity: '--plasma-tabs-disabled-opacity', | ||
containerWidth: '--plasma-tabs-container-width', | ||
cursor: '--plasma-tabs-cursor', | ||
underlineHeight: '--plasma-tabs-underline-height', | ||
underlineColor: '--plasma-tabs-underline-color', | ||
fontWeight: '--plasma-tabs-font-weight', | ||
color: '--plasma-tabs-color', | ||
colorHover: '--plasma-tabs-color-hover', | ||
}; |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { css } from '@linaria/core'; | ||
|
||
import { tokens } from '../../../Tabs.tokens'; | ||
|
||
export const base = css` | ||
opacity: var(${tokens.disabledOpacity}); | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { css } from '@linaria/core'; | ||
|
||
import { tokens } from '../../../Tabs.tokens'; | ||
|
||
export const base = css` | ||
width: var(${tokens.containerWidth}); | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export { tabsRoot, tabsConfig } from './Tabs'; | ||
export { tabItemRoot, tabItemConfig } from './TabItem'; | ||
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. тут ещё нужно добавить ре-экспорт токенов export { classes as dropdownClasses, tokens as dropdownTokens } from './Dropdown.tokens'; 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. Поправил |
||
export { tokens as tabsTokens } from './Tabs.tokens'; |
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.
вот сюда добавить токены из TabsItem, имел ввиду
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.
Перенес