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

Refactor Heading Elements for Screen Readers #1391

Open
pt2302 opened this issue Apr 11, 2024 · 2 comments
Open

Refactor Heading Elements for Screen Readers #1391

pt2302 opened this issue Apr 11, 2024 · 2 comments

Comments

@pt2302
Copy link
Contributor

pt2302 commented Apr 11, 2024

Description/Context

Headings are announced by screen readers; in the code, they are often used for font size. This makes the pages less usable by individuals with screen readers, since the headings are announced unnecessarily.

Plan/Design

Only use heading elements for "true" headings, and use different classes for manipulating font size.

@pdpinch
Copy link
Member

pdpinch commented Apr 12, 2024

Can you give an example?

What's the scope of this, or is that part of the issue?

@pt2302
Copy link
Contributor Author

pt2302 commented Apr 12, 2024

Yes, a concrete example is

<h4>Hal Abelson</h4>

I think that one approach will be to create or use custom font size tags and use those instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants