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

Optical centering of play icon for animated image control #7

Closed
aaronpinero opened this issue Jun 21, 2024 · 0 comments
Closed

Optical centering of play icon for animated image control #7

aaronpinero opened this issue Jun 21, 2024 · 0 comments
Assignees

Comments

@aaronpinero
Copy link

For an animated image, I suspect the play icon is being mathematically centered on the control box background. However, because of the shape of the play icon, it does not appear optically centered; instead it seems as if it is off-center to the left.

I was able to achieve something close to optically centered by modifying the example component code from the documentation as follows:

<wa-animated-image
  src="https://shoelace.style/assets/images/walk.gif"
  alt="Animation of untied shoes walking on pavement"
>
  <wa-icon slot="play-icon" style="margin-left:3px" name="play"></wa-icon>
</wa-animated-image>

I'm not suggesting this is the correct solution, only illustrating how the play button should be positioned more to the right to achieve optical centering. Perhaps the real solution to this is to modify the play icon itself and not this component. However, optical centering of this icon would help the overall appearance of the component.

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

No branches or pull requests

2 participants