If the generated content is purely presentational, make sure to hide it from assistive technology, for example by using aria-hidden
Writing CSS with Accessibility in Mind
Manuel Matuzovic
6.5K18

I want to add a little asterisk (*) to label of required field. No I have many fields I can’t just go in to html and add one another span element. Or I don’t have access to the html. Now the only way left is to add pseudo element directly on label. How can I add aria-hidden attribute directly to the label element because I do want some part of label element to be read by screen readers?

Like what you read? Give Samiullah Khan a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.