Open rebekaburnett opened 1 month ago
I tested it locally, and it seemed to work to add the visibility
tag to the hash-link
style.
:global(.hash-link) {
opacity: 0;
visibility: hidden;
...
}
:global(.hash-link:focus),
:global(*:hover > .hash-link) {
opacity: 1;
visibility: visible;
}
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The hash links (the invisible markers immediately following each heading) are throwing contrast errors. If you add an aria label of hidden, it should fix that. (see attachment)
Reproducible demo
No response
Steps to reproduce
You can see the error by installing the WAVE extension in Chrome and enabling it (click the little W button in the header) when you're on one of the Docusaurus pages which have headers (e.g., https://docusaurus.io/docs)
Expected behavior
Expect to not get any of the errors in the scans.
Actual behavior
Your environment
Self-service