alchemy-media 0.7.3 → 0.7.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,3 +1,7 @@
1
+ ## 0.7.4 (2023-03-13)
2
+
3
+ * By default, conceal SVGs that have the `graphics-symbol` role from assistive technologies
4
+
1
5
  ## 0.7.3 (2023-02-26)
2
6
 
3
7
  * Add `Media#downloadImage()` method to the Media helper
package/element/al_svg.js CHANGED
@@ -21,7 +21,7 @@ Svg.setAttribute('src');
21
21
  *
22
22
  * @author Jelle De Loecker <jelle@elevenways.be>
23
23
  * @since 0.5.1
24
- * @version 0.7.1
24
+ * @version 0.7.4
25
25
  */
26
26
  Svg.setMethod(async function injectSvg() {
27
27
 
@@ -59,6 +59,9 @@ Svg.setMethod(async function injectSvg() {
59
59
 
60
60
  if (!this.hasAttribute('aria-label')) {
61
61
  this.setAttribute('aria-label', '');
62
+
63
+ // graphics-symbol images are not important, so they can be hidden
64
+ this.setAttribute('aria-hidden', 'true');
62
65
  }
63
66
  }
64
67
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "alchemy-media",
3
3
  "description": "The media plugin for Alchemy",
4
- "version": "0.7.3",
4
+ "version": "0.7.4",
5
5
  "repository": {
6
6
  "type" : "git",
7
7
  "url" : "https://github.com/11ways/alchemy-media.git"