mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(button): allow overflow to be overridden by the CSS variable (#20738)
fixes #20726
This commit is contained in:
@ -179,13 +179,13 @@
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
|
||||||
box-shadow: var(--box-shadow);
|
box-shadow: var(--box-shadow);
|
||||||
|
|
||||||
contain: layout style;
|
contain: layout style;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
opacity: var(--opacity);
|
opacity: var(--opacity);
|
||||||
overflow: var(--overflow);
|
overflow: var(--overflow);
|
||||||
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<ion-button fill="clear">Clear</ion-button>
|
<ion-button fill="clear">Clear</ion-button>
|
||||||
<ion-button color="secondary">Default</ion-button>
|
<ion-button color="secondary">Default</ion-button>
|
||||||
<ion-button color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
<ion-button color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
||||||
<ion-button color="danger" shape="round">Round</ion-button>
|
<ion-button color="danger" shape="round" fill="outline">Round</ion-button>
|
||||||
<ion-button color="warning" fill="outline">Outline</ion-button>
|
<ion-button color="warning" fill="outline">Outline</ion-button>
|
||||||
<ion-button color="dark" fill="clear">Clear</ion-button>
|
<ion-button color="dark" fill="clear">Clear</ion-button>
|
||||||
</p>
|
</p>
|
||||||
@ -37,7 +37,7 @@
|
|||||||
<ion-button class="ion-focused" fill="clear">Clear</ion-button>
|
<ion-button class="ion-focused" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="ion-focused" color="secondary">Default</ion-button>
|
<ion-button class="ion-focused" color="secondary">Default</ion-button>
|
||||||
<ion-button class="ion-focused" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
<ion-button class="ion-focused" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
||||||
<ion-button class="ion-focused" color="danger" shape="round">Round</ion-button>
|
<ion-button class="ion-focused" color="danger" shape="round" fill="outline">Round</ion-button>
|
||||||
<ion-button class="ion-focused" color="warning" fill="outline">Outline</ion-button>
|
<ion-button class="ion-focused" color="warning" fill="outline">Outline</ion-button>
|
||||||
<ion-button class="ion-focused" color="dark" fill="clear">Clear</ion-button>
|
<ion-button class="ion-focused" color="dark" fill="clear">Clear</ion-button>
|
||||||
</p>
|
</p>
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<ion-button class="ion-activated" fill="clear">Clear</ion-button>
|
<ion-button class="ion-activated" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="ion-activated" color="secondary">Default</ion-button>
|
<ion-button class="ion-activated" color="secondary">Default</ion-button>
|
||||||
<ion-button class="ion-activated" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
<ion-button class="ion-activated" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
||||||
<ion-button class="ion-activated" color="danger" shape="round">Round</ion-button>
|
<ion-button class="ion-activated" color="danger" shape="round" fill="outline">Round</ion-button>
|
||||||
<ion-button class="ion-activated" color="warning" fill="outline">Outline</ion-button>
|
<ion-button class="ion-activated" color="warning" fill="outline">Outline</ion-button>
|
||||||
<ion-button class="ion-activated" color="dark" fill="clear">Clear</ion-button>
|
<ion-button class="ion-activated" color="dark" fill="clear">Clear</ion-button>
|
||||||
</p>
|
</p>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<ion-button class="custom" fill="clear">Clear</ion-button>
|
<ion-button class="custom" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="custom" color="secondary">Default</ion-button>
|
<ion-button class="custom" color="secondary">Default</ion-button>
|
||||||
<ion-button class="custom" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
<ion-button class="custom" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
||||||
<ion-button class="custom" color="danger" shape="round">Round</ion-button>
|
<ion-button class="custom" color="danger" shape="round" fill="outline">Round</ion-button>
|
||||||
<ion-button class="custom" color="warning" fill="outline">Outline</ion-button>
|
<ion-button class="custom" color="warning" fill="outline">Outline</ion-button>
|
||||||
<ion-button class="custom" color="dark" fill="clear">Clear</ion-button>
|
<ion-button class="custom" color="dark" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="custom ion-focused">Default</ion-button>
|
<ion-button class="custom ion-focused">Default</ion-button>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<ion-button class="custom ion-focused" fill="clear">Clear</ion-button>
|
<ion-button class="custom ion-focused" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="custom ion-focused" color="secondary">Default</ion-button>
|
<ion-button class="custom ion-focused" color="secondary">Default</ion-button>
|
||||||
<ion-button class="custom ion-focused" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
<ion-button class="custom ion-focused" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
||||||
<ion-button class="custom ion-focused" color="danger" shape="round">Round</ion-button>
|
<ion-button class="custom ion-focused" color="danger" shape="round" fill="outline">Round</ion-button>
|
||||||
<ion-button class="custom ion-focused" color="warning" fill="outline">Outline</ion-button>
|
<ion-button class="custom ion-focused" color="warning" fill="outline">Outline</ion-button>
|
||||||
<ion-button class="custom ion-focused" color="dark" fill="clear">Clear</ion-button>
|
<ion-button class="custom ion-focused" color="dark" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="custom ion-activated">Default</ion-button>
|
<ion-button class="custom ion-activated">Default</ion-button>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<ion-button class="custom ion-activated" fill="clear">Clear</ion-button>
|
<ion-button class="custom ion-activated" fill="clear">Clear</ion-button>
|
||||||
<ion-button class="custom ion-activated" color="secondary">Default</ion-button>
|
<ion-button class="custom ion-activated" color="secondary">Default</ion-button>
|
||||||
<ion-button class="custom ion-activated" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
<ion-button class="custom ion-activated" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
|
||||||
<ion-button class="custom ion-activated" color="danger" shape="round">Round</ion-button>
|
<ion-button class="custom ion-activated" color="danger" shape="round" fill="outline">Round</ion-button>
|
||||||
<ion-button class="custom ion-activated" color="warning" fill="outline">Outline</ion-button>
|
<ion-button class="custom ion-activated" color="warning" fill="outline">Outline</ion-button>
|
||||||
<ion-button class="custom ion-activated" color="dark" fill="clear">Clear</ion-button>
|
<ion-button class="custom ion-activated" color="dark" fill="clear">Clear</ion-button>
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user