Giter VIP home page Giter VIP logo

Comments (4)

GCalToolkit avatar GCalToolkit commented on August 22, 2024 1

Yes, I think it's a combination of CSS overrides and some JS timing issues particular to Chrome Extensions. Not a big problem - it's all working perfectly now with those tweaks, thanks for your help, and for what is probably the best JS colour picker!

from coloris.

mdbassit avatar mdbassit commented on August 22, 2024

Thank for the kind words!

I'm not sure I understand. clr-open-label is the id of the element that contains a text label used for accessibility purposes, it has nothing to do with a default color.

If the following page works for you on MacOS Ventura and Chrome 117, then it's not a issue in the color picker itself:
https://coloris.js.org/examples.html

from coloris.

GCalToolkit avatar GCalToolkit commented on August 22, 2024

I'm using the picker in a Chrome Extension pop-up and I'm not exactly sure what the problem is, but I've fixed it by setting the color with inline css on 'clr-field' each time the pop-up loads. I also had to set '.clr-preview button' opacity to 0 or there's a weird shape in front of the 'close' button:

Screenshot 2023-09-22 at 12 42 10

from coloris.

mdbassit avatar mdbassit commented on August 22, 2024

Unfortunately I have no experience writing chrome extensions, but from the screenshot, I'm guessing the buttons' width and background color CSS properties are being overridden.

from coloris.

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.