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,7 +62,12 @@ $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 {
-fx-opacity: cfg.$opacity-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