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

Vote button wrong color in dark mode #1936

Open
dusansimic opened this issue Oct 15, 2022 · 15 comments
Open

Vote button wrong color in dark mode #1936

dusansimic opened this issue Oct 15, 2022 · 15 comments
Labels
hacktoberfest This issue is recommended for Hacktoberfest participants. help wanted website-bug Bug that is on the website itself

Comments

@dusansimic
Copy link
Collaborator

Vote button in chat has light background in dark mode.

@dusansimic dusansimic added help wanted hacktoberfest This issue is recommended for Hacktoberfest participants. website-bug Bug that is on the website itself labels Oct 15, 2022
@Anuran12
Copy link

Hi. @dusansimic i I want to fix this.

@dusansimic
Copy link
Collaborator Author

Feel free to work on this :). Send a pull request once you've made a working version. Take a look at some of past pull requests (#1933 and #1931 for example) as an inspiration how to fix the issue.

@Anuran12
Copy link

@dusansimic Okay thanks

@Anuran12
Copy link

@dusansimic hey.. please help. where can i find the class name of the vote button ?

@dusansimic
Copy link
Collaborator Author

@Anuran12 you can find it in the dev tools (open them by pressing F12). You can use the inspect element tool to easily find the element you're looking for in the html tree and from there you can look for the specific style which is causing the issue. Once you find the style, just check which class applies that style and you found the class name you need to patch.

@Anuran12
Copy link

@dusansimic Is it looking good ?

image

@dusansimic
Copy link
Collaborator Author

On light mode, the light color is used which in case of light mode is a secondary color. Blue is the primary color. I think in this cases it would be better to use a dark color. There is one available in the variable --secondary-button-background. You can use that css variable for the background of this button.

Also, feel free to open a pull request so I can see the progress and changes in the stylesheets :)

@Anuran12
Copy link

@dusansimic Hey.. --secondary-button-background is not working.

@Anuran12
Copy link

@dusansimic

image

The variable is not mentioned there.

@Anuran12
Copy link

So Only rgba() is working..

image

image

@dusansimic
Copy link
Collaborator Author

The variable is not mentioned there.

The variable is defined by Messenger website in __fb-dark-mode class.

If it doesn't work when color is specified with a variable, but it does when it's specified manually, it might be that it is overwritten somewhere in the element tree. A similar thing happened in another pull request (#1938 (comment)). Check it out and try to fix it, we should avoid hardcoding colors when possible.

@Anuran12
Copy link

@dusansimic It's confuting for me :(

I am making a draft PR. then please tell me there what should i do and what should not. Please help

@dusansimic
Copy link
Collaborator Author

To open a draft PR, you just create a PR and check the box where it says that you want that PR to be a draft, not a regular one. That way when you're done working, make it a regular PR and I'll check if everything is fine so it can be merged. On the Hacktoberfest website you can find various resources on working with GitHub.

If that is a bit confusing, feel free to just open a regular PR and we will discuss the progress there. I want you to open a PR so I can clearly see what is the current state of the code and what might be causing any issues. That way it would be easier for both you and me to work any problems out :)

@Anuran12
Copy link

@dusansimic I created the PR.

by the way the join room button still not fixed

image

@dusansimic
Copy link
Collaborator Author

by the way the join room button still not fixed

It is in my case, however it's not perfect.

image

Check the main branch. If there are some other cases where the issue is still present, feel free to open an issue, describe that case and work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest This issue is recommended for Hacktoberfest participants. help wanted website-bug Bug that is on the website itself
Projects
None yet
Development

No branches or pull requests

2 participants