mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user