Skip to content

Commit

Permalink
fix(MWPW-164129): adds support for empty string in alt attribute (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmiqueo authored Jan 10, 2025
1 parent d894e97 commit 4ddd05a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 0.23.26 (12/18/2024, 11:05:06)
* Chimera UI Libraries - Build 0.23.28 (1/6/2025, 16:49:34)
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -47197,7 +47197,7 @@ var Card = function Card(props) {
_react2.default.createElement('img', {
// the text card uses the image as logo
src: isText ? image : logoSrc,
alt: isText ? altText : logoAlt || 'Logo',
alt: isText ? altText : logoAlt || '',
loading: 'lazy',
width: '32' })
),
Expand All @@ -47208,7 +47208,7 @@ var Card = function Card(props) {
className: 'consonant-Card-logo' },
_react2.default.createElement('img', {
src: cardIcon,
alt: iconAlt || 'Logo',
alt: iconAlt || '',
loading: 'lazy',
width: '32',
'data-testid': 'consonant-Card-logoImg' })
Expand Down
4 changes: 2 additions & 2 deletions dist/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.source.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions react/src/js/components/Consonant/Cards/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ const Card = (props) => {
<img
// the text card uses the image as logo
src={isText ? image : logoSrc}
alt={isText ? altText : logoAlt || 'Logo'}
alt={isText ? altText : logoAlt || ''}
loading="lazy"
width="32" />
</div>
Expand All @@ -426,7 +426,7 @@ const Card = (props) => {
className="consonant-Card-logo">
<img
src={cardIcon}
alt={iconAlt || 'Logo'}
alt={iconAlt || ''}
loading="lazy"
width="32"
data-testid="consonant-Card-logoImg" />
Expand Down

0 comments on commit 4ddd05a

Please sign in to comment.