mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(segment): fix css var + host-context()
This commit is contained in:
@ -5,12 +5,11 @@
|
||||
|
||||
:host {
|
||||
/**
|
||||
* @prop --background: Background of the button
|
||||
* @prop --border-color: Color of the button border
|
||||
* @prop --btn-background: Background of the button
|
||||
* @prop --btn-border-color: Color of the button border
|
||||
* @prop --border-radius: Radius of the button border
|
||||
* @prop --border-style: Style of the button border
|
||||
* @prop --border-width: Width of the button border
|
||||
* @prop --color: Color of the button text
|
||||
* @prop --icon-size: Size of the button icon
|
||||
* @prop --margin-top: Top margin of the button
|
||||
* @prop --margin-end: End margin of the button
|
||||
@ -27,10 +26,12 @@
|
||||
--padding-top: 0;
|
||||
--padding-bottom: 0;
|
||||
--icon-size: 1em;
|
||||
--btn-background: inherit;
|
||||
--btn-border-color: inherit;
|
||||
|
||||
flex: 1;
|
||||
|
||||
color: var(--color);
|
||||
color: inherit;
|
||||
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
@ -70,10 +71,9 @@
|
||||
|
||||
border-width: var(--border-width);
|
||||
border-style: var(--border-style);
|
||||
border-color: var(--border-color);
|
||||
border-color: var(--btn-border-color);
|
||||
|
||||
background: var(--background);
|
||||
color: inherit;
|
||||
background: var(--btn-background);
|
||||
|
||||
contain: content;
|
||||
cursor: pointer;
|
||||
|
Reference in New Issue
Block a user