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

Improve image filter attribute handling #945

Merged
merged 1 commit into from
Jul 20, 2022
Merged

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jul 20, 2022

This PR Closes #944 and refactors the image filter as part of #812

Following changes have been made:

  • <ktml:images></ktml:images> has been renamed to <ktml:image></ktml:image>

  • The image filter now allows to add custom data- attributes to image elements and they are re-included when the <img /> element is replaced with a responsive version.

  • It's no longer possible to use data- attributes to provide filter config options, instead a <ktml:image></ktml:image> wrapper should be used. For example:

 <ktml:image lazyload="progressive,inline" width="400">
     <img src="/images/foo.jpg" / >
     <img src="/images/bar.jpg"  />
 </ktml:image>

- Rename <ktml:images> to <ktml:image>
- Allow to set custom data- attributes on <img /> elements
- Remove ability to set img filter config options using data- attributes, should use <ktml:image> instead
@github-actions github-actions bot added breaking This issue contains a BC breaking change refactor labels Jul 20, 2022
@johanjanssens johanjanssens added this to In progress in v0.23.0 via automation Jul 20, 2022
v0.23.0 automation moved this from In progress to Ready Jul 20, 2022
@johanjanssens johanjanssens reopened this Jul 20, 2022
v0.23.0 automation moved this from Ready to In progress Jul 20, 2022
@johanjanssens johanjanssens merged commit 36781a3 into master Jul 20, 2022
v0.23.0 automation moved this from In progress to Ready Jul 20, 2022
@johanjanssens johanjanssens deleted the feature/944-image branch July 20, 2022 15:26
@johanjanssens johanjanssens added this to the v0.23.0 milestone Aug 8, 2022
@johanjanssens johanjanssens mentioned this pull request Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This issue contains a BC breaking change refactor
Projects
No open projects
v0.23.0
  
Ready
Development

Successfully merging this pull request may close these issues.

Improve image filter attribute handling
1 participant