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

chore: improve SVG icon styling #1226

Merged
merged 1 commit into from
Jan 24, 2023
Merged

chore: improve SVG icon styling #1226

merged 1 commit into from
Jan 24, 2023

Conversation

deboer-tim
Copy link
Collaborator

What does this PR do?

After learning a bit more Svelte this looks like a cleaner way to pass styling down to the SVG icon components:

  • Size isn't restricted to a number but can be 1em, or 10%.
  • SVG now correctly inherits styling (e.g. color) from its parent, or can be set explicitly.

Screenshot/screencast of this PR

N/A. No visible change, but will make it easier/possible to reuse the icons in other places.

After learning a bit more Svelte this looks like a cleaner way to pass styling down to the SVG icon components:
- Size isn't restricted to a number but can be 1em, or 10%.
- SVG now correctly inherits styling (e.g. color) from its parent, or can be set explicitly.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and works as before

image

@benoitf benoitf merged commit a713a21 into containers:main Jan 24, 2023
@podman-desktop-bot podman-desktop-bot added this to the 0.11.0 milestone Jan 24, 2023
@deboer-tim deboer-tim deleted the svg branch January 30, 2023 13:52
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.

None yet

3 participants