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

Label: use style instead of invalid attribute #3394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deltragon
Copy link

The svg text element does not support an overflow attribute. Use the CSS overflow property instead.

This is purely for spec compliance (eg. for accessibility, WCAG 2.1 SC 4.1.1 requires this). It has no effect on behavior, as the overflow attribute was treated by most browsers as a CSS property anyways.
This might also increase compatibility with some browsers/SVG parsers that did not support this fallback.

Note that yarn run build failed with some unrelated errors on my machine, so I did not include any build files.

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.

1 participant