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

fix: Poor contrast on SlashMenu #5342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

its-id
Copy link
Contributor

@its-id its-id commented May 8, 2024

fixes #5304

dark mode
Screenshot 2024-05-09 at 1 59 56 AM



Light mode Screenshot 2024-05-09 at 2 01 06 AM

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Hi @its-id, thanks for your contribution, I have left comments :)

background: ${({ theme, disableBlur }) =>
disableBlur
? theme.background.primary
: theme.background.transparent.secondary};
: theme.background.transparent.primary};
Copy link
Member

Choose a reason for hiding this comment

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

the background looks correct according to the ticket (transparent.secondary)

Copy link
Member

Choose a reason for hiding this comment

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

Why are we changing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the background looks correct according to the ticket (transparent.secondary)

the current background is more lighter which makes it a bit different in looks when compared to that of menu bars opened when click on table action buttons.

since, the requirement was to make all menu bar follow same theme. that's why i did change the background color as well. (although the bg used in table menus on the left uses theme.background.primary | i went for transparent.primary as we are also having some blur css so wanted to keep its point).

else, i can revert back to original background and show you the difference if you want.

@@ -10,10 +10,12 @@ const StyledDropdownMenu = styled.div<{
? 'none'
: 'blur(12px) saturate(200%) contrast(50%) brightness(130%)'};

color: ${({ theme }) => theme.font.color.secondary};
Copy link
Member

Choose a reason for hiding this comment

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

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poor contrast on Notes & Tasks "block menu"
2 participants