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

361
Visualizações
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 à 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