Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

426
Vistas
Accessibility: Vue & Jest-Axe: Buttons must have discernible text. How can we add a button name/ aria-label if the child content comes through a slot?

I have been trying to improve my project in terms of accessibility, so I decided to add some ESLint rules from vuejs-accessibility and install Jest-Axe.

When running accessibility tests on my button components Jest-Axe prompted me that Buttons must have discernible text and started looking into it and I am kinda stuck, as I am using <slot /> to pass content dynamically to my buttons, and this content can me in form of a rich-text or other text compoments that I currently have.

Is there a way that I can make the incoming content available for the screen readers? Would a nice solution be to just write "Press Button" as a hint?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda