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

A11y: Add "aria-pressed" attribute to tile buttons #613

Closed
1 task done
davidcollingwood opened this issue May 12, 2022 · 2 comments · May be fixed by #940
Closed
1 task done

A11y: Add "aria-pressed" attribute to tile buttons #613

davidcollingwood opened this issue May 12, 2022 · 2 comments · May be fixed by #940
Labels
enhancement New feature or request stale

Comments

@davidcollingwood
Copy link

Before you start - checklist

  • I have checked if this feature request is not already reported

Description

In order to improve the accessibility of this component, the current "toggled" state of the tile buttons (on / off) should be defined so that screen reader users are able to tell which date is currently selected.

Proposed solution

When a date is selected, the associated tile button should define the "aria-pressed" attribute as true. When a date is not selected, the associated tile button should define the "aria-pressed" attribute as false.

<button class="..." aria-pressed="true">
  <abbr aria-label="1 January 2020">1</abbr>
</button>
<button class="..." aria-pressed="false">
  <abbr aria-label="2 January 2020">2</abbr>
</button>

Alternatives

No response

Additional information

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed

@davidcollingwood davidcollingwood added the enhancement New feature or request label May 12, 2022
@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Aug 15, 2022
@github-actions
Copy link
Contributor

This issue was closed because it has been stalled for 14 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant