For screen-reader users, decorative SVGs can add noise and make a site harder to use. Set aria-hidden="true" on a decorative inline SVG to remove it from the accessibility tree; hide only icons that add no meaningful information or functionality. section 3.3.1 section 3.3.3
<button aria-label="Search"> #A <svg aria-hidden="true">...</svg> #B </button>
The button keeps its accessible name through aria-label="Search", while aria-hidden="true" marks its SVG icon as decorative. section 3.3.3
If an icon conveys useful context or functionality, do not hide it from assistive technologies. Test with a screen reader to check that decorative images are ignored. section 3.3.3 section 3.3.1
