Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Hide an element with CSS

Open demostanis opened this issue 4 years ago • 3 comments

I would like to have the keyboard state hidden when the caps lock is off. However, it seems impossible as of now. display and visibility are reported as invalid property names.

demostanis avatar Oct 24 '21 15:10 demostanis

Check the @joesri ’s answer here https://github.com/Alexays/Waybar/pull/3038#issuecomment-2051804110

This issue should be closed too I think.

milouse avatar Apr 16 '24 09:04 milouse

A hacky fix is to set the margin, padding and font-size to 0px

Xgames123 avatar Aug 05 '24 16:08 Xgames123

Check the @joesri ’s answer here #3038 (comment)

This issue should be closed too I think.

This only works for me if the keyboard-state module is just text. If it has some background color, or border, or anything like that, it is still shown even with an empty format ("format": "{icon}", unlocked icon being empty string "")

stepanzak avatar Sep 29 '24 15:09 stepanzak