Skip to content

Commit 8e0eb8e

Browse files
Mnickiimusalesebastienlevert
authored
[accessibility] Remove find component (#1690)
* removes find component, fix svg role typo, adds aria labels for npm,github icons * update svg icons * Update .storybook/manager-head.html Co-authored-by: Musale Martin <[email protected]> Co-authored-by: Musale Martin <[email protected]> Co-authored-by: Sébastien Levert <[email protected]>
1 parent cf6141c commit 8e0eb8e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.storybook/manager-head.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
svgElem.setAttributeNS(null, "viewBox", `0 0 ${boxWidth * 2} ${boxHeight * 2}`);
192192
svgElem.setAttributeNS(null, "width", boxWidth);
193193
svgElem.setAttributeNS(null, "height", boxHeight);
194-
svgElem.setAttributeNS(null, "role", "image");
194+
svgElem.setAttributeNS(null, "role", "img");
195+
svgElem.setAttributeNS(null, "aria-label", " to ");
195196
svgElem.setAttributeNS(null, "style", imageStyle);
196197

197198
const svgElemPath = document.createElementNS(xmlns, "path");
@@ -419,4 +420,9 @@
419420
.css-1en6m26 {
420421
color: #616159 !important;
421422
}
422-
</style>
423+
424+
/* Removes Find component feature */
425+
.css-8ktt77 {
426+
display: none;
427+
}
428+
</style>

0 commit comments

Comments
 (0)