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:
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
|
// othserwise background color will be different due -fxopacity and
|
||||||
// -fx-effect applied at the same time
|
// -fx-effect applied at the same time
|
||||||
&:disabled {
|
&: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;
|
-fx-opacity: cfg.$opacity-disabled;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// When titled pane is animated and being collapsed you may notice that bottom
|
// 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
|
// pane border appears slightly before than animation has completed. Sadly, we can't
|
||||||
|
Loading…
Reference in New Issue
Block a user