Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Money field isn't accessible to screen reader users #11011

Closed
gcamacho079 opened this issue Apr 25, 2022 · 0 comments · Fixed by #11098
Closed

[4.x]: Money field isn't accessible to screen reader users #11011

gcamacho079 opened this issue Apr 25, 2022 · 0 comments · Fixed by #11098
Assignees
Labels
accessibility 👤 features related to accessibility bug craft4

Comments

@gcamacho079
Copy link
Contributor

What happened?

Description

The money field does not have programmatically-associated labels, instructions, error text, etc.

Steps to reproduce

  1. Add money field to a field layout
  2. Inspect with Chrome DevTools and view the Accessibility Pane

Expected behavior

The Name should match the visual label, and the Description should contain errors, status, instructions, and other messages referenced in the describedBy variable (set in the fieldHtml function).

For example, the following shows the Accessibility Pane for the title field (with instructions).
Screenshot showing an input name of Headline Required and description text that reads: 'The primary title of this blog post'

Actual behavior

The field does not have a name or description text for screen reader users. The following shows the Accessibility Pane for a money field that has both a visible label and instructions:

Screenshot showing money input field with no accessible name or description.

Craft CMS version

4.0.0-beta.4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility 👤 features related to accessibility bug craft4
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants