-
Notifications
You must be signed in to change notification settings - Fork 217
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
chore(button): S2 fast follows fixes #5174
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 294fb77 The changes in this PR will be included in the next version bump. This PR includes changesets to release 84 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
Tachometer resultsChromebutton permalinktest-basic
Firefoxbutton permalinktest-basic
|
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Pull Request Test Coverage Report for Build 14008296000Details
💛 - Coveralls |
…e/spectrum-web-components into rajdeep/button-fast-follows
@Rajdeepc is this ready for review? |
Not yet! We are addressing change requests from design here. When its ready for review the tag will be there. |
Overview
This PR refactors the Button component's API to enhance clarity and maintainability by introducing logic that allows static-color properties and variant types to coexist. Previously, the API did not account for scenarios where both variant and static-color properties were used together, leading to inconsistencies in the contract. This update ensures proper handling of Spectrum 2 Button fast-follow changes related to static color properties.
Proposal
. API Coexistence
variant
andstatic-color
attributes can be used togethervariant
determines the semantic style (accent, primary, secondary, negative)static-color
determines the color (white, black)Design Spec
https://spectrum.adobe.com/page/button/#Static-color
Related Issue
How has this been tested?
Static Black Spectrum 2
Static White Spectrum 2
Did it pass in Desktop?
Did it pass in Mobile?
Did it pass in iPad?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.