-
Notifications
You must be signed in to change notification settings - Fork 83
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
Tokens for UTSlider #222
base: master
Are you sure you want to change the base?
Tokens for UTSlider #222
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"slider": { | ||
"comment": "applies to sliders", | ||
"figma": "https://www.figma.com/file/NaNrfXjygZtRgMfHAFHjsp/Components---Windows?node-id=46518%3A104257", | ||
"track-empty": { | ||
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. why not grouping like:
|
||
"#normal": { | ||
"background": "@theme-control-inactive-normal" | ||
}, | ||
"#disabled": { | ||
"background": "@theme-control-inactive-disabled" | ||
} | ||
}, | ||
"track-full": { | ||
"#normal": { | ||
"background": "@theme-control-active-normal" | ||
}, | ||
"#disabled": { | ||
"background": "@theme-control-active-disabled" | ||
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. |
||
} | ||
}, | ||
"handle": { | ||
"#normal": { | ||
"background": "@theme-background-solid-primary-normal", | ||
"border": "@theme-outline-primary-normal" | ||
}, | ||
"#hovered": { | ||
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. we do not have a hover state in the component's figma, right? do we need to create one in the repo? if yes, we should we ask the momentum team to add this state to their Figma |
||
"background": "@theme-background-solid-secondary-normal", | ||
"border": "@theme-outline-primary-normal" | ||
}, | ||
"#pressed": { | ||
"background": "@theme-background-solid-secondary-normal", | ||
"border": "@theme-outline-primary-normal" | ||
}, | ||
"#focused": { | ||
"background": "@theme-background-solid-primary-normal", | ||
"border": "@theme-control-active-normal" | ||
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. is this in the component figma? cannot find it |
||
}, | ||
"#disabled": { | ||
"background": "@theme-background-solid-tertiary-normal", | ||
"border": "@theme-background-solid-tertiary-normal" | ||
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. you can put "border": "none". "none" is a keyword that makes the "background" colour of that object be assigned to its "border". The output is the same as you have here, but it is just more readable that this handle has no border on disabled. |
||
} | ||
} | ||
} | ||
} |
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.
let's put this in platformcomponents/desktop as mobile has this component (https://www.figma.com/file/z6oi9Ku3X7rM1Wj2451B9u/Components---Android?node-id=11917%3A56753) but the colors are not the same