-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
👩👧👦communityFeedbackFeedback from communityFeedback from community📕documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Currently the DBInput
uses the label
property to connect a <label>
with an <input>
which is fine for most use cases.
Sometimes you want to optimize how screenreaders announce fields and therefore it would be great if one can specify a different aria-label
.
For example let's say we have a DBInput for defining the minimal time and a new property ariaLabel
:
<DBInput
type="number"
id="min-connecting-time-input"
label="mind. Umstiegszeit"
ariaLabel="minimale Umstiegszeit"
/>
It should lead into something like this (simplified):
<label for="min-connecting-time-input">mind. Umstiegszeit</label>
<input type="number" placeholder=" " aria-label="minimale Umstiegszeit" id="min-connecting-time-input">
As a result a screenreader will announce minimale Umstiegszeit
instead of mind. Umstiegszeit
.
This change should be considered also for other types of Input controls (e. g. select, checkbox, etc.)
Metadata
Metadata
Assignees
Labels
👩👧👦communityFeedbackFeedback from communityFeedback from community📕documentationImprovements or additions to documentationImprovements or additions to documentation
Type
Projects
Status
📋 Backlog