@financial-times/o-topper 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### [5.4.1](https://www.github.com/Financial-Times/origami/compare/o-topper-v5.4.0...o-topper-v5.4.1) (2022-11-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * support o-topper within a snappy grid container ([6c6f20a](https://www.github.com/Financial-Times/origami/commit/6c6f20a78916f447820380af93161fd1414b794c))
9
+
3
10
  ## [5.4.0](https://www.github.com/Financial-Times/origami/compare/o-topper-v5.3.1...o-topper-v5.4.0) (2022-11-15)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/o-topper",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "Article header styling",
5
5
  "keywords": [
6
6
  "topper",
@@ -1,3 +1,7 @@
1
+ /// @prop {Boolean}
2
+ /// @access public
3
+ $o-topper-snappy: if($o-grid-mode == 'snappy' , true, false) !default;
4
+
1
5
  /// @prop {Boolean}
2
6
  /// @access public
3
7
  $o-topper-is-silent: true !default;
@@ -3,7 +3,7 @@
3
3
  @mixin _oTopperThemeFullBleedOffset {
4
4
  &.o-topper--right-rail {
5
5
  .o-topper__image-credit {
6
- @if $o-grid-mode != 'snappy' {
6
+ @if not $o-topper-snappy {
7
7
  @include oGridRespondTo(L) {
8
8
  width: calc(100vw - 720px);
9
9
  }
@@ -124,7 +124,7 @@
124
124
  transform: translate(calc(50vw - 590px), 0);
125
125
  width: calc(50vw - 250px);
126
126
  }
127
- @if $o-grid-mode == 'snappy' {
127
+ @if $o-topper-snappy {
128
128
  @include oGridRespondTo($from: L, $until: XL) {
129
129
  transform: translate(calc(50vw - 470px), 0);
130
130
  width: calc(50vw - 170px);