Skip to content
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/WCAG: automatic test flags textarea for missing label field #12

Open
johanbove opened this issue Apr 15, 2022 · 1 comment

Comments

@johanbove
Copy link

johanbove commented Apr 15, 2022

The field has the placeholder "Supports markdown" but does not have a visible text label.

WCAG rule

Screenshot 2022-04-15 083019

@johanbove
Copy link
Author

The missing fields is also a problem reported on the "post" view.

I know Tailwind CSS has a "sr-only" class name which could be used on the label elements, so they would be there for screen-readers. However best practice is to always have the label of a field visible. Placeholders should not be used for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant