@ndla/image-search 2.0.34 → 2.0.37

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.
@@ -42,6 +42,7 @@ export default function ImageSearchResult(_ref) {
42
42
  onSelectImage: onSelectImage,
43
43
  useImageTitle: useImageTitle,
44
44
  checkboxLabel: checkboxLabel,
45
- showCheckbox: showCheckbox
45
+ showCheckbox: showCheckbox,
46
+ "aria-hidden": true
46
47
  }) : '');
47
48
  }
@@ -50,7 +50,8 @@ var PreviewImage = function PreviewImage(_ref) {
50
50
  alt: "presentation",
51
51
  srcSet: getSrcSets(image.imageUrl),
52
52
  sizes: "(min-width: 800px) 360px, (min-width: 400px) 300px, 100vw",
53
- src: image.imageUrl
53
+ src: image.imageUrl,
54
+ "aria-label": title
54
55
  })), ___EmotionJSX("div", {
55
56
  className: "information"
56
57
  }, ___EmotionJSX("h2", {
@@ -56,6 +56,7 @@ function ImageSearchResult(_ref) {
56
56
  onSelectImage: onSelectImage,
57
57
  useImageTitle: useImageTitle,
58
58
  checkboxLabel: checkboxLabel,
59
- showCheckbox: showCheckbox
59
+ showCheckbox: showCheckbox,
60
+ "aria-hidden": true
60
61
  }) : '');
61
62
  }
@@ -62,7 +62,8 @@ var PreviewImage = function PreviewImage(_ref) {
62
62
  alt: "presentation",
63
63
  srcSet: (0, _imageUtil.getSrcSets)(image.imageUrl),
64
64
  sizes: "(min-width: 800px) 360px, (min-width: 400px) 300px, 100vw",
65
- src: image.imageUrl
65
+ src: image.imageUrl,
66
+ "aria-label": title
66
67
  })), (0, _core.jsx)("div", {
67
68
  className: "information"
68
69
  }, (0, _core.jsx)("h2", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/image-search",
3
- "version": "2.0.34",
3
+ "version": "2.0.37",
4
4
  "description": "A simple library for searching images from NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -26,12 +26,11 @@
26
26
  "es"
27
27
  ],
28
28
  "dependencies": {
29
- "@ndla/button": "^1.1.9",
29
+ "@ndla/button": "^1.1.10",
30
30
  "@ndla/core": "^0.7.3",
31
- "@ndla/forms": "^1.0.68",
31
+ "@ndla/forms": "^1.0.71",
32
32
  "@ndla/icons": "^1.5.0",
33
- "@ndla/licenses": "^2.1.0",
34
- "@ndla/pager": "^1.0.18",
33
+ "@ndla/pager": "^1.0.19",
35
34
  "@ndla/util": "^2.0.2"
36
35
  },
37
36
  "devDependencies": {
@@ -40,11 +39,10 @@
40
39
  "peerDependencies": {
41
40
  "@emotion/core": "^10.0.9",
42
41
  "@emotion/styled": "^10.0.9",
43
- "react": "^16.0.0",
44
- "react-prop-types": "0.4.0"
42
+ "react": "^16.0.0"
45
43
  },
46
44
  "publishConfig": {
47
45
  "access": "public"
48
46
  },
49
- "gitHead": "2cb0a358364364f906a93b164b27e800be29bb25"
47
+ "gitHead": "ce4b624d37b5e9b472943c2fb9210e47c9cf4230"
50
48
  }