Open IsaevAlexandr opened 3 months ago
@amje @korvin89 what do you think?
@amje @korvin89 what do you think?
Hey! Sounds good. We should to talk with our designers
And where is a bug with popup bg color only in bark theme with --g-color-base-simple-hover-solid
variable cos it has identical styles for bg colors and elements merge in view
https://github.com/gravity-ui/uikit/blob/main/styles/themes/dark/base.scss#L11
and
https://github.com/gravity-ui/uikit/blob/main/styles/themes/dark/base.scss#L73
--g-color-base-float
variable used for Popup bg color
https://github.com/gravity-ui/rfc/assets/27916444/50ca787b-803d-4972-8d2f-c043000e3702
Hey! Sounds good. We should to talk with our designers
@korvin89 solid colors for selection highlightnig (normal and hover) were removed when upgrading from UIKit 4 to 5 if I remember it correctly
And where is a bug with popup bg color only in bark theme with
--g-color-base-simple-hover-solid
variable cos it has identical styles for bg colors and elements merge in view
regarding this particular case we have following options:
__--__color-list-selection-drag
@IsaevAlexandr @amje
@IsaevAlexandr @korvin89
What if inside Popup
we add these styles:
--_--background-color: var(--g-popup-background-color, var(--g-color-base-float));
// ...
--g-color-base-background: var(--_--background-color);
It's like user themization but it's done by component itself. So all components receive right color when addressing --g-color-base-background
variable. Then we can apply this technique:
.dnd-item {
background: linear-gradient(
to right,
var(--g-color-base-selection),
var(--g-color-base-selection)
),
linear-gradient(
to right,
var(--g-color-base-background),
var(--g-color-base-background)
);
}
@IsaevAlexandr @korvin89 what do you think about Andrey proposal?
@IsaevAlexandr @korvin89
What if inside
Popup
we add these styles:--_--background-color: var(--g-popup-background-color, var(--g-color-base-float)); // ... --g-color-base-background: var(--_--background-color);
It's like user themization but it's done by component itself. So all components receive right color when addressing
--g-color-base-background
variable. Then we can apply this technique:.dnd-item { background: linear-gradient( to right, var(--g-color-base-selection), var(--g-color-base-selection) ), linear-gradient( to right, var(--g-color-base-background), var(--g-color-base-background) ); }
I think this is a good solution!
it may be worth applying this approach to all components in gravityui/uikit
?
@IsaevAlexandr are you planning to make this change? Or is it better to find someone to solve this issue?
in dnd scenarios, the selected elements should not have a transparent background. I suggest to add
--g-color-base-selection-solid
css custom property for this case without transparencyhttps://github.com/gravity-ui/rfc/assets/27916444/a8e5732a-63fe-49a6-afb5-c84dfa5c3a6c