patternfly-react
patternfly-react copied to clipboard
feat(Button): add text wrapper, update icon usage
What: Closes #10626
- Updates Button such that all children will be wrapped by
pf-v6-c-button__text, and whenever aniconis passed in that icon will be wrapped bypf-v6-c-button__icon(was previously for non-plain buttons, now applies to all button icons). - Updates usages of our Buttons to passing the
iconprop instead of an icon child. - Updates
DualListSelectorControlto have aniconprop that is passed through to the internal Button. - Updates snapshots.
This PR will be failing until https://github.com/patternfly/patternfly-react/pull/10661 is merged due to the core bump.
Preview: https://patternfly-react-pr-10663.surge.sh
A11y report: https://patternfly-react-pr-10663-a11y.surge.sh
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
Your changes have been released in:
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- [email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
- @patternfly/[email protected]
Thanks for your contribution! :tada: