mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(segment): add disabled property to segment and segment button
rename Sass variables for opacity for consistency references #5639
This commit is contained in:
@ -18,6 +18,7 @@ $segment-button-wp-background-color: transparent !default;
|
||||
|
||||
$segment-button-wp-opacity: .5 !default;
|
||||
$segment-button-wp-opacity-activated: 1 !default;
|
||||
$segment-button-wp-opacity-disabled: .3 !default;
|
||||
|
||||
$segment-button-wp-buttons-justify-content: flex-start !default;
|
||||
|
||||
@ -50,6 +51,12 @@ ion-segment {
|
||||
}
|
||||
}
|
||||
|
||||
.segment-button-disabled {
|
||||
opacity: $segment-button-wp-opacity-disabled;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
|
||||
ion-segment {
|
||||
|
Reference in New Issue
Block a user