Code Monkey home page Code Monkey logo

Comments (5)

tomayac avatar tomayac commented on August 12, 2024 1

I'm sorry, I see the problem now. While the label is always there, some toggle styles means they are empty, requiring an ARIA label. I completely missed this, apologies again. Re-opening the Issue, and hoping to release a fix later this week.

from dark-mode-toggle.

tomayac avatar tomayac commented on August 12, 2024 1

Thanks both, @Sungodragon and @aress31! This has now been fixed for good via c5a79ae. I have just released v0.9.0 that includes this fix.

from dark-mode-toggle.

tomayac avatar tomayac commented on August 12, 2024

I think this is a different input#t (the toggle's IDs can re-appear on the page due to the toggle using shadow DOM), since as you can see from your screenshot the input from the toggle does have an associated label.

I also ran Lighthouse on other pages that include the toggle, and everything was fine. I can't see the URL of the page you tested with, but try checking if the page uses input#t somewhere.

from dark-mode-toggle.

Sungodragon avatar Sungodragon commented on August 12, 2024

This issue is present on https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html

Kindly check from Chrome Lighthouse

image

from dark-mode-toggle.

Sungodragon avatar Sungodragon commented on August 12, 2024

I have Fixed the issue with aria-label="Toggle Theme" by adding it here, FYI I am a Junior Dev so I was just fiddling with these things. I have used the Source un minified HTML here.

image

from dark-mode-toggle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.