Skip to content

Commit cc5fde9

Browse files
fix(frontend): svg icons with titles should be focusable
1 parent 8a0e42c commit cc5fde9

File tree

1 file changed

+1
-1
lines changed
  • packages/frontend/lib/globals

1 file changed

+1
-1
lines changed

packages/frontend/lib/globals/icon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const icon = (name, title) => {
6262
}
6363

6464
const svg = title
65-
? `<svg class="icon" xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 48 48" focusable="false" aria-labelledby="${name}-title" role="img">
65+
? `<svg class="icon" xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 48 48" aria-labelledby="${name}-title" role="img">
6666
<title id="${name}-title">${title}</title>
6767
<path fill="currentColor" d="${paths[name]}"/>
6868
</svg>`

0 commit comments

Comments
 (0)