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: Ensure SVGAttributes includes height & width #4556

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Nov 13, 2024

I'm innocent on this one! Or at least more so.

Picked up by the ecosystem-ci: https://github.com/preactjs/ecosystem-ci/actions/runs/11782934145

As SVGAttributes extended the mega HTMLAttributes, it always had access to height & width through that. However, with slimming down of HTMLAttributes to just the global attributes a few days ago, this is no longer the case. Need to be re-added to the SVG interface.

widths looks a bit odd and it was created when types were originally provided. I can't think of anything that'd call for widths, nor have I been able to find any reference to it, so I took a guess that it was a typo? Let me know if I'm missing something!

@coveralls
Copy link

coveralls commented Nov 13, 2024

Coverage Status

coverage: 99.486%. remained the same
when pulling f8da79b on fix/svg-height-width
into 208b0b9 on main.

@rschristian rschristian merged commit 68ada1a into main Nov 13, 2024
5 checks passed
@rschristian rschristian deleted the fix/svg-height-width branch November 13, 2024 09:12
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.

3 participants