patternfly-react
patternfly-react copied to clipboard
Button - update to support wrappers for icon and text
Placeholder issue, follow up to core work in https://github.com/patternfly/patternfly/issues/5944 and https://github.com/patternfly/patternfly/issues/6245
Discussed with @tlabaj the docs/API change could be:
- Children is always treated as the text. We'll wrap children in the text wrapper.
- Icons are always passed via the
iconprop. Any positioning continues to happen viaiconPosition, though we may or may not need to apply a class for the position anymore. - ^ applies to all buttons, including plain.