Skip to content

Indicating and resetting to default values #484

Open
@nicolaskruchten

Description

@nicolaskruchten
Contributor

I promised @alexcjohnson that this editor would somehow indicate to the user when the value of an attribute has been explicitly set or is currently just following the underlying default, and that there would be a way to 'clear' the current setting. For example, if the color of a marker is blue, is it blue because the user set it to blue, or is blue the default? If it's the former, then we should be able to reset it to the default, even if the default is the same blue.

My current best-guess around what this could look like is this, with some more careful thought paid to the colours:

image

The dynamic UX would involve a tooltip on hover with a bit of explanatory text and the option to double-click to reset to defaults.

Thoughts @VeraZab ?

Activity

alexcjohnson

alexcjohnson commented on Jun 12, 2018

@alexcjohnson
Collaborator

Nice, thanks @nicolaskruchten! I'm not sure about double-click though - If we're
going for a tooltip of some sort, why not let the bar expand into a single-clickable clear button on hover? Something like:
defaults

nicolaskruchten

nicolaskruchten commented on Jun 13, 2018

@nicolaskruchten
ContributorAuthor

I'm a fan of that!

VeraZab

VeraZab commented on Jun 13, 2018

@VeraZab
Contributor

expanding on hover sounds good!

self-assigned this
on Apr 11, 2019
linked a pull request that will close this issue on Apr 12, 2019
removed their assignment
on Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @nicolaskruchten@alexcjohnson@dmt0@VeraZab

      Issue actions

        Indicating and resetting to default values · Issue #484 · plotly/react-chart-editor