Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

279
Visualizações
How to resize tooltip (icon) text for scenarios with zoom-in / zoom out?

I'm using typescript / react and my website has an icon as seen below: Icon Image

This is the code for the Icon :

<Icon iconName="Info" tabIndex={0} aria-label={description} css="padding: 0 .2rem; margin-right: .1rem; " title={description} />

When you hover over the icon you see the title of the icon in the following image: Title of the icon

However, when zooming, the text of the tooltip (title part of the code / tooltip) does not resize or increase / decrease with zoom. How can I change the title attribute of the element so that it resizes with zooming correctly.

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

If you want the font to enlarge or diminish when the user zooms in/out, then consider using em as your css unit

about 4 years ago · Santiago Gelvez Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda