Open ymrl opened 6 months ago
Latest commit: fea3a9463fe1c01dd21191b358fa312da21161c2
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
are there plans to merge this PR soon ? w3c/accname is already supporting this but we are stuck with dom-accessibility-api because we are using testing-library :(
According to HTML-AAM,
placeholder
attribute will be used as accessible name if text-field elements (input
element with some types ortextarea
element) do not havearia-label
,aria-labelledby
attributes, relatedlabel
element, ortitle
attribute.So, I changed
computeTextAlternative()
function to useplaceholder
attribute. And to take priority fortitle
attribute, changed to usetitle
attribute before it.