这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dnoice
Copy link
Contributor

@dnoice dnoice commented Nov 14, 2023

Description

The css 'speak' property is not widely supported and is currently not a standard property. If you're using it to prevent screen readers from reading certain elements, a more standard approach is to use the aria-hidden="true" attribute in your HTML.

This will hide the span with the class nf from screen readers. This is a more widely supported and standard way of controlling how screen readers interact with your elements.

it's really not much to get excited about, I just noticed it, and wanted to bring it up to your attention.
the line has been wrapped in a comment.

/* speak: none; */

dnoice and others added 2 commits November 14, 2023 04:21
The speak property is not widely supported and is currently not a standard property. If you're using it to prevent screen readers from reading certain elements, a more standard approach is to use the aria-hidden="true" attribute in your HTML.

This will hide the span with the class nf from screen readers. This is a more widely supported and standard way of controlling how screen readers interact with your elements.
This reverts commit b1d437b.
Because that changed a generated file.

The generator is changed instead with the changes added here.
@Finii
Copy link
Collaborator

Finii commented Nov 14, 2023

Thanks for the PR!

I'm no web programmer and such details are beyond me, so we must rely on expert like you :-)

@Finii Finii merged commit 30e8c31 into ryanoasis:master Nov 16, 2023
@dnoice
Copy link
Contributor Author

dnoice commented Nov 16, 2023 via email

LNKLEO pushed a commit to LNKLEO/Nerd that referenced this pull request Nov 24, 2023
Update nerd-fonts-generated.css
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