Change media “ALT” label to a specific class (#28777)

pull/2577/head
Claire 2024-01-17 16:32:56 +01:00 committed by GitHub
parent 1a3859d8e2
commit e817fe4c35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Item extends PureComponent {
}
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');

View File

@ -6097,6 +6097,7 @@ a.status-card {
gap: 2px;
}
.media-gallery__alt__label,
.media-gallery__gifv__label {
display: flex;
align-items: center;