Skip to content

Change: Don't output duplicate ids for section headers.#20

Merged
TrueBrain merged 1 commit intoTrueBrain:masterfrom
Xaroth:remove-duplicate-ids
Jan 8, 2021
Merged

Change: Don't output duplicate ids for section headers.#20
TrueBrain merged 1 commit intoTrueBrain:masterfrom
Xaroth:remove-duplicate-ids

Conversation

@Xaroth
Copy link
Copy Markdown
Contributor

@Xaroth Xaroth commented Jan 8, 2021

As per https://web.dev/duplicate-id-active/, it is not recommended to have multiple elements with the same id.

This changes the output for each section so that the anchor element points to the span (since the span contains the useful information, and as such should be the target for screen readers). I also merged the two anchor elements into one.

@Xaroth Xaroth force-pushed the remove-duplicate-ids branch from 3cf92f4 to 6a70fbd Compare January 8, 2021 14:52
@TrueBrain TrueBrain merged commit f0de975 into TrueBrain:master Jan 8, 2021
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.

2 participants