A11y: enable rule jsx-a11y/alt-text (#55832)

* Enable jsx-a11y/alt-text rule

* Fix errors

* Fix tests

* Enable jsx-a11y/alt-text rule after solving merge conflict

* Delete unused import

* Modify files according to the reviewer's comments

* Revert test changes and update snapshot

* tweaks to image alt names

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Laura Fernández
2022-10-03 10:27:04 +02:00
committed by GitHub
parent 6856784134
commit fca252e7dc
21 changed files with 32 additions and 21 deletions

View File

@@ -70,10 +70,10 @@ export class PreviewSettings extends PureComponent<Props, State> {
</tr>
<tr>
<td>
<img src={getThumbnailURL(uid, false)} style={imgstyle} />
<img src={getThumbnailURL(uid, false)} alt="Preview of dashboard in dark theme" style={imgstyle} />
</td>
<td>
<img src={getThumbnailURL(uid, true)} style={imgstyle} />
<img src={getThumbnailURL(uid, true)} alt="Preview of dashboard in light theme" style={imgstyle} />
</td>
</tr>
<tr>

View File

@@ -11,7 +11,7 @@ export const PubdashFooter = function () {
<div className={styles.footer}>
<span className={styles.logoText}>
<a href="https://grafana.com/" target="_blank" rel="noreferrer noopener">
powered by Grafana <img className={styles.logoImg} src="public/img/grafana_icon.svg"></img>
powered by Grafana <img className={styles.logoImg} alt="" src="public/img/grafana_icon.svg"></img>
</a>
</span>
</div>