Fix TitledPane disabled effect

Opacity shouldn't be applied to the titled pane borders, otherwise disabled accordion blocks would look weird.
This commit is contained in:
mkpaz 2022-08-31 08:48:41 +04:00
parent a75982482a
commit 909451fb8b

@ -62,8 +62,13 @@ $elevation-interactive: map-get(cfg.$elevation, 2) !default;
// othserwise background color will be different due -fxopacity and
// -fx-effect applied at the same time
&:disabled {
// opacity shouldn't be applied to the titled pane borders,
// otherwise disabled accordion blocks would look weird
>.title > *,
>.content > * {
-fx-opacity: cfg.$opacity-disabled;
}
}
// When titled pane is animated and being collapsed you may notice that bottom
// pane border appears slightly before than animation has completed. Sadly, we can't