@financial-times/o-teaser 6.2.2 → 6.2.4

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ### [6.2.4](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.2.3...o-teaser-v6.2.4) (2022-12-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * o-teaser, image hero meta contrast ([6b39c4e](https://www.github.com/Financial-Times/origami/commit/6b39c4e2ef3e2765510468bd37d6ad6b26a56908))
9
+ * require 3.3.0 or higher ([fc180c6](https://www.github.com/Financial-Times/origami/commit/fc180c619755daa1b7bfe65509f354cf0de113bf))
10
+
11
+ ### [6.2.3](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.2.2...o-teaser-v6.2.3) (2022-12-15)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * o-teaser, update demos to show focus states ([c0b0454](https://www.github.com/Financial-Times/origami/commit/c0b045475dbac8a2b89a4b496d9785b06bc74ebf))
17
+
3
18
  ### [6.2.2](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.2.1...o-teaser-v6.2.2) (2022-01-13)
4
19
 
5
20
 
@@ -1,7 +1,8 @@
1
1
  @import '../../main';
2
2
 
3
- @include oTeaser();
3
+ @include oNormalise();
4
4
  @include oFonts();
5
+ @include oTeaser();
5
6
 
6
7
  body {
7
8
  background-color: oColorsByName('paper');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/o-teaser",
3
- "version": "6.2.2",
3
+ "version": "6.2.4",
4
4
  "description": "Provides styling for teaser elements, which contain information about an article and link through to it",
5
5
  "keywords": [
6
6
  "article",
@@ -19,7 +19,9 @@
19
19
  "start": "npx serve ./demos/local",
20
20
  "build": "bash ../../scripts/component/build.bash",
21
21
  "test": "bash ../../scripts/component/test.bash",
22
- "lint": "bash ../../scripts/component/lint.bash"
22
+ "debug:js": "bash ../../scripts/component/debug-js.bash",
23
+ "lint": "bash ../../scripts/component/lint.bash",
24
+ "watch": "bash ../../scripts/component/watch.bash"
23
25
  },
24
26
  "peerDependencies": {
25
27
  "@financial-times/o-colors": "^6.0.1",
@@ -32,7 +34,7 @@
32
34
  },
33
35
  "devDependencies": {
34
36
  "@financial-times/o-date": "^5.2.0",
35
- "@financial-times/o-normalise": "^3.2.0"
37
+ "@financial-times/o-normalise": "^3.3.0"
36
38
  },
37
39
  "engines": {
38
40
  "npm": "^7 || ^8"
@@ -42,5 +44,11 @@
42
44
  "npm": "7.11.1"
43
45
  },
44
46
  "percy": true,
45
- "private": false
47
+ "private": false,
48
+ "dependencies": {
49
+ "date-fns": "^1.29.0",
50
+ "dateformat": "^3.0.3",
51
+ "dompurify": "^2.3.9",
52
+ "html-react-parser": "^3.0.1"
53
+ }
46
54
  }
@@ -68,6 +68,9 @@
68
68
  .o-teaser__standfirst {
69
69
  @include _oTeaserStandfirst;
70
70
  }
71
+ .o-teaser__visually-hidden {
72
+ @include oNormaliseVisuallyHidden;
73
+ }
71
74
  }
72
75
 
73
76
  @mixin _oTeaserElementsImages {
@@ -10,7 +10,6 @@
10
10
  font-weight: oFontsWeight(medium);
11
11
  }
12
12
 
13
-
14
13
  /// Base styles for a teaser
15
14
  /// sets the font and basic display properties
16
15
  @mixin _oTeaserBase {
@@ -120,9 +120,20 @@
120
120
  pointer-events: auto;
121
121
  }
122
122
 
123
+ .o-teaser__tag-suffix {
124
+ color: inherit;
125
+ }
126
+
123
127
  .o-teaser__meta:after {
124
128
  border-bottom-color: oColorsByName('white');
125
129
  }
130
+
131
+
132
+ .o-teaser__tag:hover,
133
+ .o-teaser__tag:focus {
134
+ color: inherit;
135
+ outline-color: inherit;
136
+ }
126
137
  }
127
138
  }
128
139
 
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- demos/local/**
package/.prettierrc.toml DELETED
@@ -1,8 +0,0 @@
1
- printWidth = 80
2
- trailingComma = "es5"
3
- semi = true
4
- singleQuote = true
5
- useTabs = true
6
- bracketSpacing = false
7
- jsxBracketSameLine = true
8
- arrowParens = "avoid"
package/.stylelintignore DELETED
@@ -1 +0,0 @@
1
- demos/local/**