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

368
Vistas
Why Mac VoiceOver doesn't detect after mounting ReactJs Component?

I have this code in App.js. Mac's voice over can detect all the elements on this page and it keeps spelling out the text on each one by one.

const WelcomePage = () => {
  const [isWarningPage, setisWarningPage] = useState(false);
  if (!isWarningPage) {
    return (
      <>
        <div class="container-fluid">
          <div className="welcome-section">
            <div className="logo-container">
              <img src={logo} alt="" />
            </div>
            <div className="welcome-content">
              <h2 aria-level="1">Welcome to My Website</h2>
              <h5 aria-level="5">
                Connecting you to my web.
              </h5>
              <h5 className="child2" aria-level="5">
                We are happy to see you.
              </h5>
            </div>
            <div>
              <button
                onClick={() => setisWarningPage(true)}
                id="GetStartedBtn"
                aria-label="Get Started"
              >
                Get Started
              </button>
            </div>
          </div>
        </div>
      </>
    );
  }
  return PhishingWarningPage;
};

But, when I click on the "Get Started" button, Mac's Voice Over cannot detect the mounted component (Warning page). Then I focused the element using some javascript. Why does it happens?

What are my options here?

Thank you!

about 4 years ago · Santiago Trujillo
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