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

Using unstyled prop with placeholders #653

Open
sjaakvdbrom opened this issue May 18, 2024 · 0 comments
Open

Using unstyled prop with placeholders #653

sjaakvdbrom opened this issue May 18, 2024 · 0 comments

Comments

@sjaakvdbrom
Copy link

When using the unstyled prop it removes all the inline styles, including the background-image for the placeholders. It would be great if there was a way to still use a placeholder while removing all other inline styles.

For example I am using the picture element with multiple sources so that I can have different images and aspect ratios for all devices. For this I am using the prop: unstyled so the image does not get locked into one aspect ratio. The drawback of this is now that I cannot use placeholders anymore.

Maybe a possibility would be to make 'unstyled' into the following:

boolean | 'background' | undefined, where background will keep the inline styles for placeholders.

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

1 participant