Can i prevent :after pseudo element from being read by screen readers?

前端 未结 4 797
自闭症患者
自闭症患者 2021-02-12 11:28

Please consider the following markup:

4条回答
  •  终归单人心
    2021-02-12 11:59

    If you use a separate span for your icon you could apply an aria hidden tag to prevent screenreaders from reading it. I'm not sure what the support is for this though.

    
    
    

    More info in the W3C spec

提交回复
热议问题