-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add toggleColor prop to accordion and faq components #879
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 2afc62a The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 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 |
🔍 Design token changes foundView CSS variable changes+ --brand-Accordion-toggle-color-default: var(--brand-color-text-default); + --brand-Accordion-toggle-color-blue: var(--base-color-scale-blue-5); + --brand-Accordion-toggle-color-blue-purple-start: var(--base-color-scale-blue-5); + --brand-Accordion-toggle-color-blue-purple-end: var(--base-color-scale-purple-5); + --brand-Accordion-toggle-color-coral: var(--base-color-scale-coral-5); + --brand-Accordion-toggle-color-green: var(--base-color-scale-green-5); + --brand-Accordion-toggle-color-green-blue-start: var(--base-color-scale-green-5); + --brand-Accordion-toggle-color-green-blue-end: var(--base-color-scale-blue-5); + --brand-Accordion-toggle-color-gray: var(--base-color-scale-gray-5); + --brand-Accordion-toggle-color-indigo: var(--base-color-scale-indigo-5); + --brand-Accordion-toggle-color-lemon: var(--base-color-scale-lemon-5); + --brand-Accordion-toggle-color-lime: var(--base-color-scale-lime-5); + --brand-Accordion-toggle-color-orange: var(--base-color-scale-orange-5); + --brand-Accordion-toggle-color-pink: var(--base-color-scale-pink-5); + --brand-Accordion-toggle-color-pink-blue-start: var(--base-color-scale-pink-5); + --brand-Accordion-toggle-color-pink-blue-end: var(--base-color-scale-blue-5); + --brand-Accordion-toggle-color-purple: var(--base-color-scale-purple-5); + --brand-Accordion-toggle-color-purple-red-start: var(--base-color-scale-purple-5); + --brand-Accordion-toggle-color-purple-red-end: var(--base-color-scale-red-5); + --brand-Accordion-toggle-color-red: var(--base-color-scale-red-5); + --brand-Accordion-toggle-color-red-orange-start: var(--base-color-scale-red-5); + --brand-Accordion-toggle-color-red-orange-end: var(--base-color-scale-orange-5); + --brand-Accordion-toggle-color-teal: var(--base-color-scale-teal-5); + --brand-Accordion-toggle-color-yellow: var(--base-color-scale-yellow-5); + --brand-Accordion-toggle-color-default: var(--brand-color-text-default); + --brand-Accordion-toggle-color-blue: var(--base-color-scale-blue-2); + --brand-Accordion-toggle-color-blue-purple-start: var(--base-color-scale-blue-2); + --brand-Accordion-toggle-color-blue-purple-end: var(--base-color-scale-purple-2); + --brand-Accordion-toggle-color-coral: var(--base-color-scale-coral-2); + --brand-Accordion-toggle-color-green: var(--base-color-scale-green-2); + --brand-Accordion-toggle-color-green-blue-start: var(--base-color-scale-green-2); + --brand-Accordion-toggle-color-green-blue-end: var(--base-color-scale-blue-2); + --brand-Accordion-toggle-color-gray: var(--base-color-scale-gray-2); + --brand-Accordion-toggle-color-indigo: var(--base-color-scale-indigo-2); + --brand-Accordion-toggle-color-lemon: var(--base-color-scale-lemon-2); + --brand-Accordion-toggle-color-lime: var(--base-color-scale-lime-2); + --brand-Accordion-toggle-color-orange: var(--base-color-scale-orange-2); + --brand-Accordion-toggle-color-pink: var(--base-color-scale-pink-2); + --brand-Accordion-toggle-color-pink-blue-start: var(--base-color-scale-pink-2); + --brand-Accordion-toggle-color-pink-blue-end: var(--base-color-scale-blue-2); + --brand-Accordion-toggle-color-purple: var(--base-color-scale-purple-2); + --brand-Accordion-toggle-color-purple-red-start: var(--base-color-scale-purple-2); + --brand-Accordion-toggle-color-purple-red-end: var(--base-color-scale-red-2); + --brand-Accordion-toggle-color-red: var(--base-color-scale-red-2); + --brand-Accordion-toggle-color-red-orange-start: var(--base-color-scale-red-2); + --brand-Accordion-toggle-color-red-orange-end: var(--base-color-scale-orange-2); + --brand-Accordion-toggle-color-teal: var(--base-color-scale-teal-2); + --brand-Accordion-toggle-color-yellow: var(--base-color-scale-yellow-2); |
🟢 No visual differences foundOur visual comparison tests did not find any differences in the UI. |
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.
One small question, but it's looking great!
Summary
Closes #858
Part of https://github.com/github/primer/issues/4601
🔗 Storybook
🔗 Docs
List of notable changes:
toggleColor
prop toAccordion
andFAQ
componentsAccordionToggleColors
array from the@primer/react-brand
packageFAQ
component to reflect new approach and recommendationsWhat should reviewers focus on?
Steps to test:
🔗 Storybook
🔗 Docs
Contributor checklist:
update snapshots
label to the PR)Reviewer checklist:
Screenshots: