Skip to content

When turning off Rec2020, Chroma value doesn't change even though the slider rescales #129

@NikilXYZ

Description

@NikilXYZ

Try this color: oklch(83% 0.37 145.2)
Toggle Rec2020 on. You'll see the slider rescale. Move the slider all the way up to the max value - from 0.37, it should be 0.47. (You'll end up at a color that can't be displayed).
Now toggle Rec2020 off. The slider would have reset, but the number on that graph still says 0.47. If you drag the slider a tad it resets.

Assuming this picker was written with React, I think this is a 1 or 2 line of code fix? Either pass in a prop, check that a provider for the C value is being consumed correctly (or being updated correctly), or add the C value state variable to a useEffect observer array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions