patternfly-react
patternfly-react copied to clipboard
Bug - Select - validated
The v4 Select
supported a validated
property; however, it has been omitted for v5. The design guidelines currently state the "Select component offers three validation-state presentations", but I don't see how the "validated selections" example is achieved in v5?
We've been using validation in Cost Management, but are blocked from updating to the v5 Select
.
Cost Management snapshot
Related https://github.com/patternfly/patternfly/issues/6242
Was also opened here at some point: https://github.com/patternfly/patternfly/issues/5917
Core work is done here https://github.com/patternfly/patternfly/pull/6434
TL;DR
- The parent component element (
.pf-v5-c-menu-toggle
) gets a status class (.pf-m-success/warning/danger
) - Adds a new
.pf-v5-c-menu-toggle__icon
element that holds the status icon- This is rendered in
.pf-v5-c-menu-toggle__controls
, next to the caret icon
- This is rendered in
- We may want to add something so screen readers announce the status - https://github.com/patternfly/patternfly/pull/6434#pullrequestreview-1946422952