Change media “ALT” label to a specific class (#28777)
This commit is contained in:
parent
1a3859d8e2
commit
e817fe4c35
|
@ -103,7 +103,7 @@ class Item extends PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attachment.get('description')?.length > 0) {
|
if (attachment.get('description')?.length > 0) {
|
||||||
badges.push(<span key='alt' className='media-gallery__gifv__label'>ALT</span>);
|
badges.push(<span key='alt' className='media-gallery__alt__label'>ALT</span>);
|
||||||
}
|
}
|
||||||
|
|
||||||
const description = attachment.getIn(['translation', 'description']) || attachment.get('description');
|
const description = attachment.getIn(['translation', 'description']) || attachment.get('description');
|
||||||
|
|
|
@ -6097,6 +6097,7 @@ a.status-card {
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-gallery__alt__label,
|
||||||
.media-gallery__gifv__label {
|
.media-gallery__gifv__label {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in New Issue