P粉4810352322023-09-06 09:20:49
The icons are both in your anchor tag, so you are using two icons in the menu. If these are images, then you should use "Alt". We can add tags through JS, but don't force the use of alt in the anchor. source
const anchors = document.querySelectorAll('.mobile-controls a'); anchors.forEach(anchor => { anchor.setAttribute('alt', 'Alternative text'); });