@lumx/react 3.19.1-alpha.1 → 3.19.1-alpha.2

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/package.json CHANGED
@@ -6,8 +6,8 @@
6
6
  "url": "https://github.com/lumapps/design-system/issues"
7
7
  },
8
8
  "dependencies": {
9
- "@lumx/core": "^3.19.1-alpha.1",
10
- "@lumx/icons": "^3.19.1-alpha.1",
9
+ "@lumx/core": "^3.19.1-alpha.2",
10
+ "@lumx/icons": "^3.19.1-alpha.2",
11
11
  "@popperjs/core": "^2.5.4",
12
12
  "body-scroll-lock": "^3.1.5",
13
13
  "classnames": "^2.3.2",
@@ -105,5 +105,5 @@
105
105
  "build:storybook": "storybook build"
106
106
  },
107
107
  "sideEffects": false,
108
- "version": "3.19.1-alpha.1"
108
+ "version": "3.19.1-alpha.2"
109
109
  }
@@ -160,8 +160,9 @@ export const Thumbnail = forwardRef<ThumbnailProps>((props, ref) => {
160
160
  Object.assign(wrapperProps, { as: linkAs || (linkProps?.href ? 'a' : 'button') }, disabledStateProps);
161
161
  if (isLink) {
162
162
  Object.assign(wrapperProps, linkProps);
163
+ } else {
164
+ wrapperProps['aria-label'] = forwardedProps['aria-label'] || alt;
163
165
  }
164
- wrapperProps['aria-label'] = forwardedProps['aria-label'] || alt;
165
166
  }
166
167
 
167
168
  // If we have a loading placeholder image that is really loaded (complete)