-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Accessibility issues with floating labels/validation #35093
Comments
No description provided. |
I don't follow, what do expect to happen? |
@mdo I believe the issue is that the boundaries of the label fall outside the boundaries of the text box. |
Here's a demonstration of what is happening when someone has turned on windows high contrast mode: colors that are defined as transparent become visible in high contrast mode, hence the above screenshot where the label's transparent borders, and the transparent placeholder text appear and create a poor user experience. These styles should be adjusted either by refining the styling to remove these bad side effects for windows high contrast mode, but ideally the functionality of the positioning / dependency on the cc @patrickhlauke as an fyi |
still trying to understand what the original problem reported by @HaoK is - not sure if @scottaohara's point is something else/unrelated or not. as an aside, note that for security, some browsers (like Chrome) don't report/apply the |
My comment was to add clarity of what the issue is actually about. |
so "users expected that the fields and text inside should be in proper orientation since this may cause confusion for our keyboard users" is meant to mean "in WHCM the floated label covers up the placeholder/text, then? (might have been more immediately apparent if the screenshot had been of the same thing, or maybe i just haven't had enough coffee yet today) |
Yeah @scottaohara summarizes some of the issues well, sorry for the unclear description |
x-ref #35941 |
Prerequisites
Describe the issue
We are using the floating label look (https://getbootstrap.com/docs/5.1/forms/floating-labels/) for our forms and we've run into an accessibility issue where in High Contrast mode, users expected that the fields and text inside should be in proper orientation since this may cause confusion for our keyboard users
Reduced test cases
Validation example in the docs demonstrates the issue (https://getbootstrap.com/docs/5.1/forms/floating-labels/)
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.1.0
The text was updated successfully, but these errors were encountered: