Giter VIP home page Giter VIP logo

Comments (7)

melloware avatar melloware commented on May 26, 2024

Can you provide and html snippet or code sandbox reproducer so we can see the issue?

from coloris.

Kazem-ma79 avatar Kazem-ma79 commented on May 26, 2024

Can you provide and html snippet or code sandbox reproducer so we can see the issue?


<body>
    <div class="container">
        <div class="colorContainer">
            <div>
                <input type="text" class="clr" value="rgb(255, 0, 0)">
                <p id="valueRGB"></p>
                <button id="parser">Parse</button>
            </div>
        </div>

.colorContainer {
    display: flex;
    overflow: scroll;
    width: 80vw;
    height: 80vh;
}

.clr {
    opacity: 0;
}

and removed top, left, position of #clr-picker element.

I think the problem refers to moveMarker function.

from coloris.

mdbassit avatar mdbassit commented on May 26, 2024

Update: I want color picker to be always visible.

Unfortunately, this color picker is not designed to be always visible, and It will take a lot of hacky tricks to make that happen. If you absolutely need a color picker that's always visible, I don't think this tool is right for you.

If you explain clearly what you are trying to achieve, we might be able to help.

from coloris.

Kazem-ma79 avatar Kazem-ma79 commented on May 26, 2024

Update: I want color picker to be always visible.

Unfortunately, this color picker is not designed to be always visible, and It will take a lot of hacky tricks to make that happen. If you absolutely need a color picker that's always visible, I don't think this tool is right for you.

If you explain clearly what you are trying to achieve, we might be able to help.

I couldn't find another tool and this one is very beautiful.
My project has a color picker as the main part and some other input components, if I use a hidden color picker my UI looks very empty. So I need a always visible color picker.
This is okay but only problem is that when I remove it's left & top style rules, the picker gets corrupted and need to move mouse outside of color picker to change the color.

from coloris.

mdbassit avatar mdbassit commented on May 26, 2024

Here is a modified version that doesn't hide the picker coloris-static.zip.

from coloris.

jepsar avatar jepsar commented on May 26, 2024

For me, having a static color picker would be a great feature. From my side a +1 on that.

To elaborate a bit, in case of static I don't want an input field to be visible. It can either be a hidden input, or simply having to listen for color picks. Also, I'd like the picker to be displayed inline in that case. The inline part makes this a new issue I guess. I'll create one for it.

from coloris.

mdbassit avatar mdbassit commented on May 26, 2024

Since you opened another issue for this topic, I will close this one.

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.