Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dagster-io/ui] Make disabled+checked Switch state more obvious #8033

Merged

Conversation

hellendag
Copy link
Member

Summary & Motivation

Make it easier to distinguish between checked/unchecked states on disabled Switch components.

I applied a lower opacity to disabled checkbox, star, and switch versions of Checkbox. Disabled items with a fill color still show that fill color when in a checked state, it's just faded out. See screenshots.

How I Tested These Changes

Storybook examples

@linear
Copy link

linear bot commented May 24, 2022

DAGIT-30 [toggles] hard to distinguish on vs off state when disabled

Everything is greyed out since i can not interact with the toggles as a VIEWER level user, but i then have to denote on vs off only via the right left position of the toggle.

@vercel
Copy link

vercel bot commented May 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated
dagit-storybook ⬜️ Ignored (Inspect) May 24, 2022 at 3:38PM (UTC)
dagster ⬜️ Ignored (Inspect) May 24, 2022 at 3:38PM (UTC)

@hellendag
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@hellendag
Copy link
Member Author

Before:
Screen Shot 2022-05-24 at 10 39 08 AM
Screen Shot 2022-05-24 at 10 39 14 AM
Screen Shot 2022-05-24 at 10 39 22 AM

After:

Screen Shot 2022-05-24 at 10 35 57 AM

Screen Shot 2022-05-24 at 10 36 02 AM

Screen Shot 2022-05-24 at 10 36 06 AM

Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hellendag hellendag merged commit b5604ce into master May 25, 2022
@hellendag hellendag deleted the dish/dagit-30-toggles-hard-to-distinguish-on-vs-off branch May 25, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants