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

Optional iconProps can be passed to Accordions #1794

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

jhoward1994
Copy link
Contributor

@jhoward1994 jhoward1994 commented Oct 7, 2024

What does it do?

Adds an optional prop 'iconProps' to the Accordion component

Why is it needed?

So we can modify the icon, e.g. add a fill color to it

This came up when converting the SEO plugin to v5 through strapi/strapi-plugin-seo#76

Related issue(s)/PR(s)

DX-1693

Copy link

changeset-bot bot commented Oct 7, 2024

🦋 Changeset detected

Latest commit: 8bd760b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/design-system Minor
@strapi/icons Minor
@strapi/ui-primitives Minor

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

Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 7, 2024 3:26pm

@jhoward1994 jhoward1994 self-assigned this Oct 8, 2024
@jhoward1994 jhoward1994 marked this pull request as ready for review October 8, 2024 11:11
@jhoward1994 jhoward1994 added pr: enhancement This PR adds or updates some part of the codebase or features source: design-system relates to design-system package labels Oct 8, 2024
@jhoward1994 jhoward1994 changed the title Feat/accordion-icon-color Options iconProps can be passed to Accordions Oct 8, 2024
@jhoward1994 jhoward1994 changed the title Options iconProps can be passed to Accordions Optional iconProps can be passed to Accordions Oct 8, 2024
Copy link
Member

@butcherZ butcherZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm able to change the icon's colour with iconProps now.

@jhoward1994 jhoward1994 added this to the v2.0.0 milestone Oct 9, 2024
@jhoward1994 jhoward1994 merged commit 0bdddfb into main Oct 9, 2024
12 of 13 checks passed
@jhoward1994 jhoward1994 deleted the feat/accordion-icon-color branch October 9, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: enhancement This PR adds or updates some part of the codebase or features source: design-system relates to design-system package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants