mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Add title to pictrs-image
This adds a title tag to images, uses the alt tag value. This improves accessibility for sighted users and screen readers.
This commit is contained in:
parent
0d67c64af9
commit
31257b9dd4
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
|
|||
<img
|
||||
src={this.props.src}
|
||||
alt={this.alt()}
|
||||
title={this.alt()}
|
||||
loading="lazy"
|
||||
className={classNames({
|
||||
"img-fluid": !this.props.icon && !this.props.iconOverlay,
|
||||
|
|
Loading…
Reference in a new issue