Replies: 0 comments
This discussion is being transferred. The timeline may not be complete until it finishes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In cockpit we decided on an early adoption of PF5 (https://cockpit-project.org/blog/patternfly-v5-alpha.html) and I am coming back here with some feedback.
The topic here will be the new
<Select>
component. All in all I find it a bit unnecessarily complicated as exposed to the consumers. Let's enumerate the parts that could be IMO simplified.SelectOption: right now itemId and children are required properties, otherwise the component will not render. This is asking the user to pass the same value twice for most of the simple cases. Additionally itemId feels like 'id', html dom element identifier. The old property name 'value' is more exact to what this is.
MenuToggle component can be hidden from the consumers in the simple cases at least. Compared to the previous implementation which hided the MenuToggle from the users, now the users of this components need to write much more boilerplate code.
This includes:
Two places to define if the select menu is open:
Three places to control the open state of the component
Let me know if you 're open to re-design this for a better consumer experience.
CC @nicolethoen @tlabaj
Beta Was this translation helpful? Give feedback.
All reactions