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

[Spinner] prevent track overflow #2970

Merged
merged 5 commits into from
Sep 26, 2018
Merged

[Spinner] prevent track overflow #2970

merged 5 commits into from
Sep 26, 2018

Conversation

giladgray
Copy link
Contributor

@giladgray giladgray commented Sep 25, 2018

Fixes #2966

Changes proposed in this pull request:

  • 🌟 compute spinner SVG viewBox based on computed strokeWidth so the track always exactly fills the frame to the edge and never exceeds it.
  • 👍 also, tagName now affects both DOM wrappers so it can actually be used in an SVG.

Screenshots

20px:
image

50px:
image

100px:
image

175px:
image

@giladgray

This comment has been minimized.

@giladgray giladgray requested review from invliD and removed request for invliD September 25, 2018 21:00
@giladgray
Copy link
Contributor Author

took a new approach (no more padding). now the spinner always exactly fills the image frame, which is even better than before!

@blueprint-bot
Copy link

add viewbox test

Previews: documentation | landing | table

@giladgray giladgray merged commit 93513d2 into develop Sep 26, 2018
@giladgray giladgray deleted the gg/spinner-overflow branch September 26, 2018 20:46
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.

3 participants