Skip to content
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

[Feature request] Export list of colors that can be used in the FAQ component "+" icon #858

Open
seangolob opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@seangolob
Copy link

Howdy Primer Brand!

The SWP team is looking to add controls in Contentful so that content editors can control the color of the FAQ plus icon.

Image

Currently, the FAQ component supports color customization by leveraging css variables: https://primer.style/brand/components/FAQ/react#color-customization

This is great, but it encourages developers to use any color to control the plus icons.

Ideally, there is a list of exported color options similar to the Testimonial component where we have common color names ('green', 'blue', 'purple', etc) that we can pass as a prop to the FAQ component and it would automatically add the color to the plus icon.

Currently, we would need to maintain a map in Dotcom to support this feature and ideally this collection of values would live at the PB level.

Also, we don't need granular control of each plus icon, just for the whole collection of frequently asked questions.

Thank you for your help! Let me know if more context is needed. ❤

@rezrah rezrah added the brand label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants