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

Added data-style to picture element #260

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

niklas-may
Copy link

if I want to use the picture tag and would like to add inline styles to the img tag, I would need to actually add the img tag which would break the lazy loading. To avoid this I adopted the patterern used for the alt tag, data-alt attribute on the picture tag,

@niklas-may niklas-may changed the title ✨ Added data-style to picture element Added data-style to picture element Dec 26, 2020
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

1 participant