mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
refactor(segment-content): use opacity for disabled content
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
@import "./segment-content";
|
||||
@import "../segment-button/segment-button.ios.vars";
|
||||
|
||||
// iOS Segment Content
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.segment-content-disabled) {
|
||||
opacity: $segment-button-ios-opacity-disabled;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
@import "./segment-content";
|
||||
@import "../segment-button/segment-button.md.vars";
|
||||
|
||||
// Material Design Segment Content
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.segment-content-disabled) {
|
||||
opacity: $segment-button-md-opacity-disabled;
|
||||
}
|
@ -8,7 +8,3 @@
|
||||
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:host(.segment-content-disabled) {
|
||||
display: none;
|
||||
}
|
||||
|
@ -3,7 +3,10 @@ import { Component, Host, Prop, h } from '@stencil/core';
|
||||
|
||||
@Component({
|
||||
tag: 'ion-segment-content',
|
||||
styleUrl: 'segment-content.scss',
|
||||
styleUrls: {
|
||||
ios: 'segment-content.ios.scss',
|
||||
md: 'segment-content.md.scss',
|
||||
},
|
||||
shadow: true,
|
||||
})
|
||||
export class SegmentContent implements ComponentInterface {
|
||||
|
Reference in New Issue
Block a user