Skip to content

Commit b4c6f79

Browse files
kenjiOdarkwing
authored andcommitted
Use AccessibleImage component instead of img in Workers (firefox-devtools#7639)
1 parent bbacecf commit b4c6f79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc.jsx-a11y

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// plugin:jsx-a11y/recommended set (which they override) that has different severity
1111
// levels.
1212
"jsx-a11y/accessible-emoji": "warn",
13-
"jsx-a11y/alt-text": "warn",
13+
"jsx-a11y/alt-text": "error",
1414
"jsx-a11y/anchor-has-content": "warn",
1515
"jsx-a11y/anchor-is-valid": "error",
1616
"jsx-a11y/aria-activedescendant-has-tabindex": "warn",

src/components/SecondaryPanes/Workers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Workers extends Component<Props> {
4545
key={worker.actor}
4646
onClick={() => this.props.selectThread(worker.actor)}
4747
>
48-
<img className="domain" />
48+
<AccessibleImage className="domain" />
4949
{(worker.url
5050
? `${this.props.getWorkerDisplayName(worker.actor)}: ${basename(
5151
worker.url

0 commit comments

Comments
 (0)