Skip to content

Fix/required asterisk screen reader - #75

Open
nonprofittechy wants to merge 1 commit into
v1.9.8.postfrom
fix/required-asterisk-screen-reader
Open

Fix/required asterisk screen reader#75
nonprofittechy wants to merge 1 commit into
v1.9.8.postfrom
fix/required-asterisk-screen-reader

Conversation

@nonprofittechy

Copy link
Copy Markdown
Member

This is redundant since the proper aria-required is already set. fix #43

The red asterisk on required fields was generated with CSS ::before and
::after content, which screen readers announce literally as "star". The
required state is already conveyed with aria-required, so the asterisk
should be hidden from assistive technology.

Emit the asterisk as a real <span class="darequiredmarker"
aria-hidden="true"> element in the places where the stylesheet used to
draw it, and change the CSS rules to target that span instead of the
pseudo elements. Positioning, colors, dark mode, media queries, and the
greyedout and dawide overrides are unchanged, so the appearance is the
same.

Fixes #43
@nonprofittechy
nonprofittechy changed the base branch from master to v1.9.8.post August 18, 2026 00:40
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.

Don't read the required field asterisk as "star"

1 participant