-
Notifications
You must be signed in to change notification settings - Fork 355
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
Conversation
Preview: https://patternfly-react-pr-10663.surge.sh A11y report: https://patternfly-react-pr-10663-a11y.surge.sh |
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.
Can't wait to see the codemod for plain buttons to pass their children to icon prop
839a64c
to
6d708af
Compare
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.
Looks good. Codemod issue: patternfly/pf-codemods#680
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 |
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.
LGTM!!!
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #10626
pf-v6-c-button__text
, and whenever anicon
is passed in that icon will be wrapped bypf-v6-c-button__icon
(was previously for non-plain buttons, now applies to all button icons).icon
prop instead of an icon child.DualListSelectorControl
to have anicon
prop that is passed through to the internal Button.This PR will be failing until #10661 is merged due to the core bump.