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

Notify button - incorrect hover colors #482

Closed
swashbuck opened this issue Dec 19, 2023 · 1 comment · Fixed by #483
Closed

Notify button - incorrect hover colors #482

swashbuck opened this issue Dec 19, 2023 · 1 comment · Fixed by #483
Assignees
Labels

Comments

@swashbuck
Copy link
Contributor

swashbuck commented Dec 19, 2023

Subject of the issue

The Notify button hover states are incorrect and do not use @notify-btn-hover or @notify-btn-inverted-hover.

Your environment

  • FW 5.33.10
  • Vanilla theme 9.13.1

Steps to reproduce

  1. Enable the language picker using the JSON from the example.json
  2. Override the notify button colors in your theme (see below)
  3. Select an initial language
  4. Click the language icon in the navbar to change the language
  5. Hover over the buttons in the popup

Color variables to use:

@notify-btn: white;
@notify-btn-inverted: magenta;
@notify-btn-hover: magenta;
@notify-btn-inverted-hover: red;

Expected behaviour

Button hover states should use the colors defined by @notify-btn-hover or @notify-btn-inverted-hover

Actual behaviour

Hover colors are being overridden by this style in less/core/buttons.less. That selector is more specific than the selector in less/core/notify.less. So, it ends up using @btn-color-hover and @btn-color-inverted-hover instead.

@swashbuck swashbuck added the bug label Dec 19, 2023
@swashbuck swashbuck changed the title Notify button - incorrect hover color Notify button - incorrect hover colors Dec 19, 2023
@kirsty-hames
Copy link
Contributor

Good spot @swashbuck and this is one of many reasons why we need to review/update our approach on Adapt buttons (see existing issue #469).

Meanwhile, we could resolve the issue by applying the same :not logic to .notify__btn as per .btn-text.

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

Successfully merging a pull request may close this issue.

2 participants