New contribution proposal: Expanding the Underline Popover Tooltip pattern to Text and Select fields #9156
Replies: 4 comments 2 replies
-
Thanks for the proposal. I am aligned that this design outcome is useful for merchants but have some thoughts on the technical approach. This reminds me of I think there is a way to make this a simple contribution to add a dotted underline to the Can labels take a React element? if not they should? This coupled with guidance on what the dotted underline is used for would help. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @alex-page . @Alex-Palad is currently looking at creating a prototype based on your inputs. We'll share it back here when we have something good. |
Beta Was this translation helpful? Give feedback.
-
Couple thoughts:
|
Beta Was this translation helpful? Give feedback.
-
@ksvihar Seems like there is consensus on this proposal. Let's go forward and create an issue to track this work. Let's use @alex-page suggestion above as the starting point for a solution and if you have questions along the way feel free to reach out to us directly so we everyone remains in alignment. |
Beta Was this translation helpful? Give feedback.
-
TL;DR
We want to include an underline popover tooltip in Polaris as a new treatment for providing clarifying definitions. Current use cases in production on admin include card, section, and table column titles. We’d like to expand and include this treatment for text and select fields as well.
Proposal
We want to add the underline to the text and select field labels with
0.125 rem
andborder
orborder-strong
colour token.In cases where the label is not actionable (labels on text and select fields, titles), tooltip can be shown on both hover and click (for mobile). On mobile, when the tooltip is open on click, scrolling or tapping anywhere else will close the popover automatically.
In cases where the label is actionable (column headings where sorting is possible), we could have the sort order icon be the clickable element and use a tooltip on hover to annotate the sort order (e.g. lowest to highest). The label could be underlined to offer in-context definition of the term with a popover on hover.
Champion
@ksvihar
Stakeholders
@ctankei, @dGoligorsky, Products & Pricing Create Team, Shipping Team
Estimated timeline
Ready to start upon alignment. 1-2 weeks
What problem are you solving?
We want to away from using help (?) icons paired with tooltips to explain text/selection field labels. Tooltip icons bring more attention than required.
We’re making this proposal considering we want to support cases where we don’t want to use subtext in order to keep the UI compact. This is for supplemental information that doesn’t always have to be displayed in the main UI.
How does your solution improve Polaris?
This solution reduces page density and visual distractions on pages, so that the user can view supplemental information only as needed, This ensures that merchants have additional information to understand and populate accurate inputs.
Adding this treatment (with examples, components and guidance) to Polaris Figma Library and the Polaris website will help other designers refer to the applicable use cases as well.
Have you tested and verified your solution?
The dotted underline treatment paired with a popover has been effective in other parts of admin. It's currently being used in Analytics, Index Pages and Tables. We typically use this underline treatment for card, section and column header titles.
We just want to expand this pattern to text and select field labels as well.
What is the scope of work?
What is the impact on existing implementations, and do you have a plan to address it?
We can use the Polaris website as reference material to share with our groups on this change. We can work with Polaris to help communicate any changes as well. Some potential activities:
Are there any known blockers or risks?
Not really. We (Products & Pricing Create team and Shipping team) are ready to get this proposal approved from the Polaris team and the accessibility specialists so we can implement it in respective use cases.
Beta Was this translation helpful? Give feedback.
All reactions