mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +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
|
<img
|
||||||
src={this.props.src}
|
src={this.props.src}
|
||||||
alt={this.alt()}
|
alt={this.alt()}
|
||||||
|
title={this.alt()}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
className={classNames({
|
className={classNames({
|
||||||
"img-fluid": !this.props.icon && !this.props.iconOverlay,
|
"img-fluid": !this.props.icon && !this.props.iconOverlay,
|
||||||
|
|
Loading…
Reference in a new issue