@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 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 || `${(extension == null ? void 0 : extension.toUpperCase()) || displayName} file icon`,
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 || `${(extension == null ? void 0 : extension.toUpperCase()) || displayName} file icon`,
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 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/icons-filetypes",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "File type icons for Nice2Dev UI - covers documents, code, media, archives, and more",
5
5
  "author": "Nice2Dev",
6
6
  "license": "MIT",