É um padrão comum incluir emojis no início dos títulos para adicionar distinção visual e estilo.
Um exemplo…
## :white_check_mark: Rock the Vote, this Tuesday!
…que é renderizado como:
Rock the Vote, this Tuesday!
O código gerado para esse título se parece com o seguinte:
<h2 dir="auto">
<a name="p-9969-white_check_mark-rock-the-vote-this-tuesday-1" class="anchor" href="#p-9969-white_check_mark-rock-the-vote-this-tuesday-1"></a>
<img src="https://emoji.discourse-cdn.com/twitter/white_check_mark.png?v=15"
title=":white_check_mark:"
class="emoji"
alt=":white_check_mark:"
loading="lazy"
width="20"
height="20"
style="aspect-ratio: 20 / 20;">
Rock the Vote, this Tuesday!
</h2>
Poderíamos fazer alterações no elemento img para tornar os títulos mais acessíveis e visualmente consistentes? Por exemplo:
aria-hidden="true"para que o emoji ou o alt não sejam renderizados para leitores de telavertical-align: middle; margin-right: 8px;para um alinhamento consistente
<h2 dir="auto">
<a name="p-9969-white_check_mark-rock-the-vote-this-tuesday-1" class="anchor" href="#p-9969-white_check_mark-rock-the-vote-this-tuesday-1"></a>
<img src="https://emoji.discourse-cdn.com/twitter/white_check_mark.png?v=15"
title=":white_check_mark:"
class="emoji"
alt=":white_check_mark:"
aria-hidden="true"
loading="lazy"
width="20"
height="20"
style="aspect-ratio: 20 / 20; vertical-align: middle; margin-right: 8px;">
Rock the Vote, this Tuesday!
</h2>