Image Aspect Ratio Component? #431
Replies: 2 comments 2 replies
-
Wouldn't the logic and styles be pretty much the same? If so, maybe we should create the It would look just like This would replace the current component, which probably has too narrow of a scope. And once |
Beta Was this translation helpful? Give feedback.
-
Implemented as |
Beta Was this translation helpful? Give feedback.
-
I know that the
aspect-ratio
css is still a WIP and was curious if it would be worth the effort to have a component in the meantime:To align with css property:
<sl-image aspect-ratio="16/9">
To align with responsive-embed:
<sl-image aspect-ratio="16:9">
I find myself looking to maintain aspect-ratios more and more on images. I know the
<sl-responsive-embed>
allows for aspect ratios but dont see it as being used anywhere else.Beta Was this translation helpful? Give feedback.
All reactions