Skip to content

fix(abide): add aria-describedby to the input only if error is visible#12398

Merged
joeworkman merged 1 commit intofoundation:developfrom
ahukkanen:fix/12393
Jul 11, 2022
Merged

fix(abide): add aria-describedby to the input only if error is visible#12398
joeworkman merged 1 commit intofoundation:developfrom
ahukkanen:fix/12393

Conversation

@ahukkanen
Copy link
Contributor

Description

The aria-describedby attribute is added to the input field even when the form error is hidden from the view. This poses a problem for screen reader users who will hear e.g. that "there is an error in this field" even when there is no error yet.

Types of changes

  • Documentation
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (anything that would change an existing functionality)
  • Maintenance (refactor, code cleaning, development tools...)

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • The pull request title and template are correctly filled.
  • The pull request targets the right branch (develop or develop-v...).
  • My commits are correctly titled and contain all relevant information.
  • I have updated the documentation accordingly to my changes (if relevant).
  • I have added tests to cover my changes (if relevant).

@ahukkanen ahukkanen force-pushed the fix/12393 branch 3 times, most recently from 38cbfaf to 99c065d Compare March 7, 2022 14:52
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.6% 0.6% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Abide incorrectly points form fields with aria-describedby to hidden form error messages

2 participants