mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-28 22:30:44 -05:00
The SVG used for the 'X' in the remove area button has 2 <g> (group) elements, one wrapping everything and one wrapping the two lines that make the cross. The first <g> isn't needed and means that the SVG ends up with 2 accessible names: 1. the <svg> element gets named with the text from the <title> because of it's aria-labelledby attribute referencing it 2. the first <g> gets named with the text from the <title> because the algorithm that gets the name looks for any descendent <title>s This removes the first <g> so only the accessible name for the <svg> gets announced.