Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Website adaptation for people with disabilities: Provide a valid label for form fields #101

Open
DarWik opened this issue Jan 22, 2021 · 0 comments

Comments

@DarWik
Copy link

DarWik commented Jan 22, 2021

Tool: https://www.webaccessibility.com/results/?url=http%3A%2F%2Fncov-dashboard.herokuapp.com%2F

When on-screen labels are present, they must be programmatically associated with form fields. When on-screen labels are not present, form fields must be given an accessible label.

When form fields do not have a programmatic (accessible) label, assistive technologies may incorrectly render the label or provide no label at all to users. When labels are not present or are incorrect, users of assistive technologies may not be able to complete a form.

The HTML5 specification has a new form field attribute called placeholder. This represents a label or hint, such as a word or short phrase, that is assigned to a form field such as an input field. The label or hint appears within the form field and goes away when users start typing. When the placeholder attribute is used, the label or hint may not be detected by assistive technologies. Therefore, developers should provide off-screen text in the label element of the form field or provide a title

Violations Identified (2)
<a data-original-title="Info" data-content="Global cumulative growth in cases since collection of data started. Defaulted to logarithmic y-scale" title="" data-trigger="focus" data-toggle="popover" role="button" tabindex="0" class="btn btn-sm btn-light"><i aria-hidden="true" class="fas fa-info text-dark"></i></a>
<a data-original-title="Info" data-content="Daily time series of cases. Bars can be stacked for relative adjacent comparison by toggling 'confirmed' cases." title="" data-trigger="focus" data-toggle="popover" role="button" tabindex="0" class="btn btn-sm btn-white"><i aria-hidden="true" class="fas fa-info"></i></a>

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

No branches or pull requests

2 participants