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

Fix vue material design icons HTML validation #7592

Merged

Conversation

nickvergessen
Copy link
Member

Since v5.0.0 of the lib, the property decorative has been removed.
This means the "decorative" is added to the span element, causing the
HTML validation to fail:

Attribute decorative not allowed on element span at this point.

Upstream commit
robcresswell/vue-material-design-icons@c65d8ea

This patch also removes the default title, encouraging better
accessibility by removing unhelpful titles that dont indicate usage. The
decorative prop has been removed and any icons that do not have a
meaningful title will be hidden from screen readers.


Signed-off-by: Joas Schilling <coding@schilljs.com>
This means the "decorative" is added to the span element, causing the
HTML validation to fail:

> Attribute decorative not allowed on element span at this point.

Upstream commit
robcresswell/vue-material-design-icons@c65d8ea

> This patch also removes the default title, encouraging better
> accessibility by removing unhelpful titles that dont indicate usage. The
> `decorative` prop has been removed and any icons that do not have a
> meaningful title will be hidden from screen readers.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the bugfix/noid/html-validation-vue-material-design-icons branch from 834c1e8 to bb40af3 Compare July 13, 2022 15:41
@nickvergessen nickvergessen merged commit 3f85db0 into master Jul 14, 2022
@nickvergessen nickvergessen deleted the bugfix/noid/html-validation-vue-material-design-icons branch July 14, 2022 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants