Release Notes / Version 10.2101
Table Of ContentsChanged Freemarker macros optionalAttributes and renderAttr in brick-utils
The Freemarker macros
optionalAttributes
and
renderAttr
in
@coremedia/brick-utils
did remove attributes with empty values. This has been changed to support empty values. If you need to hide empy attributes, set the value to
cm.UNDEFINED
.
These macros are used for example by the macros
optionalLink
and
optionalTag
.
Examples:
<@utils.optionalLink href=link attr={"class":"example", "download": "", "hideAttribute": cm.UNDEFINED}>Example</@utils.optionalLink> Result: <a href="link" class="example" download="">Example</a>
(CMS-16393)
Changed bricks media and mediaelement
The bricks "media" and "mediaelement" used the scss macro
stretch-absolute()
for the CSS selectors
.cm-media--responsive
and
.cm-mediaelementwrapper iframe
. This is only working, if the outer box set an
aspect-ratio-box()
, which is not part of the bricks. So we moved usage of
stretch-absolute()
to the example-bricks and example-themes.
Upgrade steps:
If you rely on our responsive image concept, please check your themes and bricks for
aspect-ratio-box()
usages and add
stretch-absolute()
for the inner box elements. Alternatively readd the removed CSS defintion to your theme:
.#{$cm-media-prefix} { &--responsive { stretch-absolute(); } } .cm-mediaelementwrapper { > iframe { @include stretch-absolute(); } }
(CMS-10569)