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

feat(Button): add text wrapper, update icon usage #10663

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Jun 26, 2024

What: Closes #10626

  • Updates Button such that all children will be wrapped by pf-v6-c-button__text, and whenever an icon is passed in that icon will be wrapped by pf-v6-c-button__icon (was previously for non-plain buttons, now applies to all button icons).
  • Updates usages of our Buttons to passing the icon prop instead of an icon child.
  • Updates DualListSelectorControl to have an icon prop that is passed through to the internal Button.
  • Updates snapshots.

This PR will be failing until #10661 is merged due to the core bump.

@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 26, 2024

@kmcfaul kmcfaul linked an issue Jun 27, 2024 that may be closed by this pull request
@tlabaj tlabaj requested review from a team, mattnolting, wise-king-sullyman and tlabaj and removed request for a team July 1, 2024 14:59
Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

Can't wait to see the codemod for plain buttons to pass their children to icon prop

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 good. Codemod issue: patternfly/pf-codemods#680

@mcoker
Copy link
Contributor

mcoker commented Jul 2, 2024

FYI ran visual regression tests before/after this update and there were no differences other than demos that dynamically generate content on page render

Link to the backstop report - backstop-react-7.2.24.pdf

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

LGTM!!!

@mcoker mcoker merged commit eca5878 into patternfly:v6 Jul 2, 2024
13 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-charts@8.0.0-alpha.29
  • @patternfly/react-code-editor@6.0.0-alpha.76
  • @patternfly/react-core@6.0.0-alpha.76
  • @patternfly/react-docs@7.0.0-alpha.82
  • @patternfly/react-drag-drop@6.0.0-alpha.58
  • @patternfly/react-icons@6.0.0-alpha.28
  • @patternfly/react-integration@6.0.0-alpha.38
  • demo-app-ts@5.1.1-alpha.75
  • @patternfly/react-styles@6.0.0-alpha.27
  • @patternfly/react-table@6.0.0-alpha.77
  • @patternfly/react-templates@6.0.0-alpha.26
  • @patternfly/react-tokens@6.0.0-alpha.27

Thanks for your contribution! 🎉

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

Successfully merging this pull request may close these issues.

Button - update to support wrappers for icon and text
6 participants