-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat(select): add component tokens #11178
Conversation
…ciado88/7180-add-select-design-tokens
@alisonailea I'm having some issues testing some of the tokens, they're commented out in |
…ciado88/7180-add-select-design-tokens
* @prop --calcite-select-text-weight: Specifies the font weight of `calcite-option`s in the component. | ||
* @prop --calcite-select-spacing-inline: Specifies the inline padding of `calcite-option`s in the component. | ||
* @prop --calcite-select-text-color: Specifies the text color of `calcite-option`s in the component. | ||
* @prop --calcite-select-size: Specifies the component's width. |
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.
I don't think we need this one, as the user can specify this on the element itself.
* @prop --calcite-select-spacing-inline: Specifies the inline padding of `calcite-option`s in the component. | ||
* @prop --calcite-select-text-color: Specifies the text color of `calcite-option`s in the component. | ||
* @prop --calcite-select-size: Specifies the component's width. | ||
* @prop --calcite-select-block-size: Specifies the component's height. |
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.
I don't think we need this one, as the user can specify this on the element itself.
* @prop --calcite-select-text-color: The text color of the component. | ||
* @prop --calcite-select-font-size: Specifies the font size of `calcite-option`s in the component. | ||
* @prop --calcite-select-text-weight: Specifies the font weight of `calcite-option`s in the component. | ||
* @prop --calcite-select-spacing-inline: Specifies the inline padding of `calcite-option`s in the component. |
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.
This one shouldn't be exposed.
…ciado88/7180-add-select-design-tokens
…ciado88/7180-add-select-design-tokens
@ashetland @SkyeSeitz Can you please take a look at the new screenshots? |
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.
Couple q -
@ashetland @SkyeSeitz - do we need to expose these text-weight / font-size properties here?
@alisonailea - there is just one focusable / hover-able container here - does this need the "--select-icon-color-hover" - or should a user use calcite-select:hover { etc... }
I know we needed to make a font weight change on the Select used in Date Picker, but I think these could stay internal for now |
@ashetland Can you please take a look at the latest snapshots? |
…ciado88/7180-add-select-design-tokens
Related Issue: #7180
Summary
Add
select
component tokens.--calcite-select-font-size
: Specifies the font size ofcalcite-option
s in the component.--calcite-select-text-weight
: Specifies the font weight ofcalcite-option
s in the component.--calcite-select-text-color
: Specifies the text color ofcalcite-option
s in the component.--calcite-select-border-color
: Specifies the component's border color.--calcite-select-icon-color
: Specifies the component's icon color.--calcite-select-icon-color-hover
: Specifies the component's icon color when hovered or active.