-
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(button, fab): add component tokens #8922
feat(button, fab): add component tokens #8922
Conversation
be9e669
to
832ad82
Compare
packages/calcite-components/src/components/color-picker/color-picker.scss
Show resolved
Hide resolved
…components into astump/7180-button-fab
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.
Just had one comment about a possible missing CSS prop on tab-nav. Other than that, this looks great! 🚀
@@ -3,6 +3,18 @@ | |||
* | |||
* These properties can be overridden using the component's tag as selector. | |||
* | |||
* @prop --calcite-color-picker-save-buttons-background-color-active: defines the background color of the button when in a active state 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.
Not critical for this PR since it can be tackled when color-picker
gets updated, but save-buttons
in the name could be misleading. Is there another name we could use to describe the saved color section, which contains both add/remove color buttons?
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 previously had it named --calcite-color-picker-button-background-color-active
but was told that sounded to generic but I think that might be the right option here since add/remove are the only buttons in the component.
* @prop --calcite-tab-nav-button-icon-color: Specifies the color of the scroll buttons' icon. | ||
* @prop --calcite-tab-nav-button-background-color-active: defines the scroll button's background color in an active state. | ||
* @prop --calcite-tab-nav-button-background-color-hover: defines the scroll button's background color in a hover state. | ||
* @prop --calcite-tab-nav-button-background-color: defines the scroll button's background 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.
Does this need --calcite-tab-nav-button-background-color-focus
?
@@ -5,6 +5,12 @@ | |||
* | |||
* @prop --calcite-inline-editable-background-color: Specifies the background color of the component. | |||
* @prop --calcite-inline-editable-border-color: Specifies the border color of the component. | |||
* @prop --calcite-inline-editable-button-corner-radius: defines the button's corner radius. |
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.
Related Issue: #7180
Summary
Button
--calcite-button-background-color: defines the component's background color.
--calcite-button-border-color: defines the component's border color.
--calcite-button-corner-radius: defines the component's corner radius.
--calcite-button-loader-color: defines the component's loader color.
--calcite-button-shadow: defines the component's shadow.
--calcite-button-text-color: defines the component's text color.
--calcite-button-icon-color: defines the color of an icon in the component.
FAB
--calcite-fab-background-color: defines the component's background color.
--calcite-fab-border-color: defines the component's border color.
--calcite-fab-corner-radius: defines the component's corner radius.
--calcite-fab-loader-color: defines the component's loader color.
--calcite-fab-shadow: defines the component's shadow.
--calcite-fab-text-color: defines the component's text color.
--calcite-fab-icon-color: defines the color of an icon in the component.