@nice2dev/icons-filetypes 1.2.1 → 1.3.0
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/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -239,8 +239,9 @@ function createFiletypeIcon(renderContent, options) {
|
|
|
239
239
|
fill: "none",
|
|
240
240
|
className: `nice-filetype-icon ${className}`.trim(),
|
|
241
241
|
style,
|
|
242
|
-
role: "img",
|
|
243
|
-
"aria-label": title
|
|
242
|
+
role: title ? "img" : "presentation",
|
|
243
|
+
"aria-label": title,
|
|
244
|
+
"aria-hidden": title ? void 0 : true,
|
|
244
245
|
...svgProps,
|
|
245
246
|
children: [
|
|
246
247
|
title && /* @__PURE__ */ jsxRuntime.jsx("title", { children: title }),
|
package/dist/index.mjs
CHANGED
|
@@ -237,8 +237,9 @@ function createFiletypeIcon(renderContent, options) {
|
|
|
237
237
|
fill: "none",
|
|
238
238
|
className: `nice-filetype-icon ${className}`.trim(),
|
|
239
239
|
style,
|
|
240
|
-
role: "img",
|
|
241
|
-
"aria-label": title
|
|
240
|
+
role: title ? "img" : "presentation",
|
|
241
|
+
"aria-label": title,
|
|
242
|
+
"aria-hidden": title ? void 0 : true,
|
|
242
243
|
...svgProps,
|
|
243
244
|
children: [
|
|
244
245
|
title && /* @__PURE__ */ jsx("title", { children: title }),
|