Skip to content

feat(Icons): Allow for more complex paths and svgs #11864

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Jun 9, 2025

What: Closes #11858

Also allow for arrays of path data in addition to simple strings. Add hamburger icon with array of path data.

When I add the path classes, the icon disappears, but looking at Eric and Michael's PRs, I get the feeling that they're necessary. It does look odd on the icons page though.

Additional issues:

@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 9, 2025

@rebeccaalpert rebeccaalpert marked this pull request as draft June 9, 2025 21:36
@rebeccaalpert rebeccaalpert marked this pull request as ready for review June 10, 2025 13:21
@rebeccaalpert rebeccaalpert requested review from thatblindgeye, a team and wise-king-sullyman and removed request for a team June 10, 2025 13:21
@rebeccaalpert
Copy link
Member Author

We talked to Michael Coker - going to drop hamburger icon since it's so specific that we lose path data unless it's in a button. We'll leave in improvements here to the other pieces so we can do this for more generic animated icons in the future.

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

Looks awesome! Could we update the PR title/initial commit to reflect the new purpose of the PR?

@rebeccaalpert rebeccaalpert changed the title feat(Icons): Add custom hamburger icon feat(Icons): Allow for more complex paths and svgs Jun 13, 2025
Allow for arrays of path data in addition to simple strings. Data can include classNames as well as multiple paths.
@rebeccaalpert
Copy link
Member Author

Renamed!

@thatblindgeye thatblindgeye merged commit fa16a3b into patternfly:main Jun 13, 2025
13 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-charts@8.3.0-prerelease.12
  • @patternfly/react-code-editor@6.3.0-prerelease.20
  • @patternfly/react-core@6.3.0-prerelease.20
  • @patternfly/react-docs@7.3.0-prerelease.26
  • @patternfly/react-drag-drop@6.3.0-prerelease.20
  • @patternfly/react-icons@6.3.0-prerelease.5
  • demo-app-ts@6.0.0-prerelease.123
  • @patternfly/react-styles@6.3.0-prerelease.5
  • @patternfly/react-table@6.3.0-prerelease.20
  • @patternfly/react-templates@6.3.0-prerelease.20
  • @patternfly/react-tokens@6.3.0-prerelease.5

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

react-icons - extend createIcon for multi-path & add hamburger icon
4 participants