Polymer 1.* and NVDA reader
I have a group of radio buttons that do not have labels. I am trying make the screen reader read out what the radio button is on hover.
I tried aria-labelledby
which, from what I read, should reference a element by id and read out it's content.
However, I am not having success. When I hover over the paper-radio-button
it does not read out yes. I have to click it first which isn't idea when compared to the example on https://www.w3.org/TR/wai-aria-practices/examples/radio/radio-2/radio-2.html.
Any ideas on how to get aria-labelledby
to reference and read out the element content with id yes
so it will read out yes on the radio button with no content/label?
<paper-button
id="yes"
disabled$="[[parentAnswerIsNo]]"
data-global$="[[picklistValues.ENHANCEDYESNO_YES]]"
on-tap="_globalSelect">Yes</paper-button>
<template
on-dom-change="_setDefaultValues"
is="dom-repeat"
items="[[fields]]"
filter="_computeField">
<div class="color-row" data-yes-answer-field-code$="[[item.field_code]]">
<div class="row">
<label class="col1">
[[item.field_label]]
</label>
<paper-radio-group
class="new-form-radio all-radio-select global-btn-select-radio"
on-selected-changed="_toggleHiddenRow"
data-yes-answer-field-code$="[[item.field_code]]"
attr-for-item-title="[[item.field_id]]"
attr-for-selected="value">
<paper-radio-button
aria-labelledby="yes"
disabled$="[[parentAnswerIsNo]]"
value="[[picklistValues.ENHANCEDYESNO_YES]]"
name="[[item.field_id]]"></paper-radio-button>