mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-28 11:13:58 +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
|
@ -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