-
Notifications
You must be signed in to change notification settings - Fork 105
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
Bug - [Switch] - [Doesn't support popover] #1268
Comments
The actual dev implementation in the screenshot above is:
I think we can put the |
@christianvogt while it's valid HTML, I'm not sure if that presents any sort of a11y issue. @thatblindgeye or @jessiehuff do you know if that would be an issue? I know we have a button in a label in checkbox tree view nodes, and I can't remember if this was discussed then or not - https://www.patternfly.org/v4/components/tree-view#with-checkboxes |
@mcoker @christianvogt in terms of putting the help popover inside the Switch |
Hey @Misjohns |
@andrew-ronaldson Having the ? beside a label that sits above the switch or check box resolves the accessibility concern. I'm worried that it adds more text/noise to the screen. In some cases, the additional label could provide helpful context but for other cases, the label would be very redundant with the switch/check box text (as in your example). Maybe we need to document that this pattern would only be required when a popover is needed vs. every instance of a check box or switch. |
If a popover is required for a switch element the question-circle icon doesn't wrap along with the switch label. When the label changes from a short label to a long label the question-circle icon can appear far away from the switch element.
The question-circle icon should appear roughly 8px from the last character in the label.
![image](https://user-images.githubusercontent.com/97301019/236934620-02402b18-1241-47c2-9716-77f6d1bcecb0.png)
This is how it currently appears when user reduces their screen width:
![image](https://user-images.githubusercontent.com/97301019/236934347-10b223f3-d288-4c8b-a27e-68622c7a81d8.png)
We are using this in RHTAP for Summit
The text was updated successfully, but these errors were encountered: