Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Aug 23, 2024

Buttons were not meant to get a green text color when the cursor hovers over them...

There might be a better fix for it, but I'm not seeing it right now. Feel free to comment if you know how to improve this 😉

Buttons were not meant to get a green text color when the cursor hovers over them...
@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-frontend 🐹 labels Aug 23, 2024
@Turbo87 Turbo87 merged commit 9bbea92 into rust-lang:main Aug 23, 2024
@Turbo87 Turbo87 deleted the button-styles branch August 23, 2024 08:48
@LawnGnome
Copy link
Contributor

If we could get something like this as the output, I don't think we'd need the !important:

a.button:hover {
  color: var(--text-color);
}

Unfortunately, this runs into sass/sass#1425. Maybe &:hover:is(a) would work here as an additional selector alongside the existing &:hover set?

@Turbo87
Copy link
Member Author

Turbo87 commented Aug 24, 2024

Might work, but the button class can also be applied to real buttons, not just anchor tags 😅

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

Labels

A-frontend 🐹 C-bug 🐞 Category: unintended, undesired behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants