Skip to content

fix: better styling for disabled items #2014

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

Merged
merged 3 commits into from
Oct 18, 2022
Merged

Conversation

allisonsuarez
Copy link
Contributor

  • when a list item is disabled it should look different than the ones that are still enabled to avoid user confusion

Screen Shot 2022-10-18 at 1 18 56 PM

Signed-off-by: Allison Suarez Miranda <[email protected]>
pointer-events: none;
cursor: not-allowed;
.resource-icon {
filter: grayscale(80%);
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm... Can you tell me more about why we use this? It is a non-conventional way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed to add some sort of visual indicator that the table item is not actionable (won't go to a table page), and it felt like just the table name being gray was not enough. There is a ss showing what it looks like. Is there a better way of doing this?

.resource-icon {
filter: grayscale(80%);
}
.resource-info .resource-info-text .resource-name {
Copy link
Member

Choose a reason for hiding this comment

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

Would this work with just '.resource-name'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it doesn't I tried to use a less specific one and the purple styling kept coming through

Signed-off-by: Allison Suarez Miranda <[email protected]>
Signed-off-by: Allison Suarez Miranda <[email protected]>
Copy link
Member

@Golodhros Golodhros left a comment

Choose a reason for hiding this comment

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

LGTM

@allisonsuarez allisonsuarez merged commit a6e914d into main Oct 18, 2022
@allisonsuarez allisonsuarez deleted the asm-disabled-style branch October 18, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend From the Frontend folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants