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

:Hover effects not working #2691

Closed
Cicin2837512 opened this issue Nov 25, 2023 · 3 comments
Closed

:Hover effects not working #2691

Cicin2837512 opened this issue Nov 25, 2023 · 3 comments

Comments

@Cicin2837512
Copy link

I just created a little module in my waybar that opens up rofi when I click on it

"custom/rofi": {
  "exec": "echo '   '",
  "on-click": "rofi -show drun",
  "on-click-right": "rofi -show run"
},
#custom-rofi {
  background-color: @color2;
  border-radius: 5px;
  box-shadow: inset 0 -3px @color1;
  padding-right: 5px;
}
#custom-rofi:hover {
  background-color: @color3; /* this line is the only change I made */
  border-radius: 5px;
  box-shadow: inset 0 -3px @color1;
  padding-right: 5px;
}

The problem is that the #custom-rofi:hover part just doesn't seem to do anything when I hover over the module and I have no idea why because that's just a normal css functionality..

@Sveske-Juice
Copy link

Same problem as #2682

@Sveske-Juice
Copy link

Sveske-Juice commented Nov 26, 2023

Seems that it's because that CSS selector only works for workspaces and taskbar modules because they have a button as described in #1838

@Alexays
Copy link
Owner

Alexays commented Apr 20, 2024

Fixed with #3145

@Alexays Alexays closed this as completed Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants