Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Don't show background in the same color as form control when clicking

Open hmpf opened this issue 11 months ago • 5 comments

Anyone else get this when clicking?

image

Originally posted by @hmpf in https://github.com/Uninett/Argus/issues/1356#issuecomment-2786024547

hmpf avatar Apr 08 '25 11:04 hmpf

Turns out this is only a problem in the "argus" theme.

hmpf avatar Apr 08 '25 12:04 hmpf

And when doing this in the "light" theme this happens:

Image

You cannot read "Open state" anymore

johannaengland avatar Apr 08 '25 13:04 johannaengland

The reason is --fallback-bc or --bc being the same as button-primary.

hmpf avatar Apr 09 '25 06:04 hmpf

.. and the reason we have that hover at all is because they are inside a <ul> with class menu. If we remove the menu classes color is ok but lots of whitespace is missing and everything shifts left.

hmpf avatar Apr 09 '25 06:04 hmpf

.. and the reason we have that hover at all is because they are inside a <ul> with class menu. If we remove the menu classes color is ok but lots of whitespace is missing and everything shifts left.

It is easier to remove the menu class and apply some of its styles to relevant tags instead to fix the postioning

podliashanyk avatar Aug 01 '25 10:08 podliashanyk