Adding attributes to a linked SVG icon

I am working through a compliance report and it was noted that all SVGs should have aria-hidden="true" added to the attributes.

I attempted to do this using the bricks/element/render_attributes filter but it appears that this is only applied to the link and not the SVG itself. According to this thread, this functionality was updated in 1.7 so that attributes are applied to the link instead of the SVG. Is there no way to add attributes to a linked SVG other than unlinking and creating a linked block container?

1 Like