-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Components: refining ItemGroup
#34709
Comments
What would be the purpose of the organizational unit for grouping
As a general rule, tooltips should be applied to actionable items. So if the entire Item is the action, the tooltip should be general: "Link color red; hover color blue" or something. |
This is a screenshot from an early version of the Global Styles Sidebar prototype — here there are 2 different In that older prototype version, those These are the reasons behind the current state of the
That makes sense. In this case, then, we should definitely think about the best way for We should probably also add tooltip support for the future |
It seems to me |
This makes sense — we don't have to necessarily group |
This is an overview issue to track all of the tasks necessary to refine the
ItemGroup
component in the context of integrating with the new design and primitives.ItemGroup
andItem
Item
: removeisAction
, useonClick
to discriminate if it should render asbutton
#35152Heading
toItemGrop
(and to link it in a semantic way as the title of the group)@wordpress/components
Button
element instead of vanilla HTMLbutton
Item
(how would that work with screen readers? e.g. consider making sure that theItem
's computed "aria-label` is the same text used in the tooltip)Item
#36653Item
to be a direct child ofItemGroup
(examples of where that fell short: Update: PanelColorGradientSettings to use dropdowns #37067 (comment) , ToolsPanel: Add CSS classes to first and last displayed ToolsPanelItems #37546 (comment))ul
/li
) (comment)Integration with other components
Item
Truncate
changes color when hovered/focused, while text insideText
doesn'tItemGroup
in combination with other componentsItemGroup
/Item
withMenuGroup
/MenuItem
#35210The text was updated successfully, but these errors were encountered: