dequelabs / dequelabs/axe-core

Include CSS content property in accessibleText

Open
#3,767 2 comments 0 reactions 0 assignees View on GitHub
accessibility support Accessible text fix
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

In axe-core 4.5 we deprecated support for IE11. Part of that means we should no longer be failing elements that have their accessible name created from the CSS content property. To do so, axe-core's accessibleText calculation will need to include CSS content. Something like the following should pass the `button-name` rule:

```html
button:before { Content: "Hello world" }

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.