
Head - Accessibility New Initiatives @BarrierBreak @247accessible Director - Product Curation and Communication @NewzHook RT's don't necessarily endorse.
- Tweets1.7K
- Following232
- Followers286
- Likes72

ALT GAAD 2023, #LabelYourControls, Tip 12 - Use screenReaderFocusable for grouping the text and input nodes together, Code <ConstraintLayout android:id="@+id/userform" ... android:screenReaderFocusable="true"> <TextView android:id="@+id/username" android:text="@string/username"/> <EditText android:id="@+id/username"/> </ConstraintLayout>, @barrierbreak, www.barrierbreak.com

ALT GAAD 2023, #LabelYourControls, Tip 7 - Explicitly associated labels help to increase the clicking area for tiny controls like checkboxes and radio buttons, Code <fieldset> <legend>Gender</legend> <input type="radio" id="gn1" name="gender" value="male"> <label for="gn1">Male</label> <input type="radio" id="gn2" name="gender" value="female"> <label for="gn2">Female</label> </fieldset>, @barrierbreak, www.barrierbreak.com

ALT GAAD 2023, #LabelYourControls, Tip 5 - Use aria-label to define accessible name for input fields where visible labels can't be added; example, Date of Birth input field, Code <fieldset> <legend>Work Phone</legend> <input type="number" autocomplete="tel-country-code" aria-label="country code"> <input type="number" autocomplete="tel-local" aria-label="phone number"> </fieldset>, @barrierbreak, www.barrierbreak.com

ALT GAAD 2023, #LabelYourControls, Tip 2 - Use visible text labels instead of hidden labels to make the form control's purpose clear for all users, Code - <label for="pwd">Password (10 characters minimum)*</label> <input id="pwd" name="password" type="password" autocomplete="current-password" minlenght="10">, @barrierbreak, www.barrierbreak.com
















