-
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): add component tokens #10358
base: dev
Are you sure you want to change the base?
Conversation
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
For consistency and according to the wiki, |
That's not the case. State tokens are only for sub-components |
Synced up w/ @alisonailea and got clarification. The guidance doc has been updated, so we are good to proceed. |
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 is looking great, @alisonailea! 😎
packages/calcite-components/src/components/button/button.e2e.ts
Outdated
Show resolved
Hide resolved
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.
Nice! This should be good to merge once the remaining comments are addressed. Thanks, @alisonailea! ✨💪✨
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
637db20
to
6528b33
Compare
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
@alisonailea for button, can we also add a token for setting the border width on each side? This would provide the ability to remove a border on one side of a button in order place buttons side by side. |
6528b33
to
a989f02
Compare
@driskull you can now set the --calcite-button-border-width when the button props set a border |
* @prop --calcite-button-loader-color: Specifies the component's loader color. | ||
* @prop --calcite-button-shadow-color: Specifies the component's box-shadow color. | ||
* @prop --calcite-button-text-color: Specifies the component's text color. | ||
* @prop --calcite-button-border-width: Specifies the component's border 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.
For @driskull case - would this need to be inline-border-start-width / inline-border-end-width?
I'd almost suggest marking those as internal as well - we may be able to support the "button group" use case in a different way down the line.
Related Issue: #7180
Summary
Calcite Button
--calcite-button-background-color: Specifies the component's background color when appearance="solid" or appearance="outline-fill".
--calcite-button-border-color: Specifies the component's border color when it has appearance="outline" or appearance="outline-fill".
--calcite-button-corner-radius: Specifies the component's corner radius.
--calcite-button-text-color: Specifies the component's text color.