mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(button): add box-sizing so anchor buttons won't exceed max-width
fixes #14760
This commit is contained in:
@ -106,6 +106,7 @@
|
||||
z-index: 0;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
|
||||
height: var(--height);
|
||||
|
||||
|
||||
@ -23,6 +23,14 @@
|
||||
<ion-button expand="block">Block</ion-button>
|
||||
<ion-button expand="full">Full</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button expand="block">Button Block</ion-button>
|
||||
<ion-button expand="block" href="#">Anchor Block</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button expand="full">Button Full</ion-button>
|
||||
<ion-button expand="full" href="#">Anchor Full</ion-button>
|
||||
</p>
|
||||
<p>
|
||||
<ion-button expand="block" color="dark" fill="outline">Block + Outline</ion-button>
|
||||
<ion-button expand="full" color="dark" fill="outline">Full + Outline</ion-button>
|
||||
@ -43,6 +51,7 @@
|
||||
<ion-button expand="block" shape="round">Block + Round</ion-button>
|
||||
<ion-button expand="full" shape="round">Full + Round</ion-button>
|
||||
</p>
|
||||
|
||||
</ion-content>
|
||||
|
||||
</ion-app>
|
||||
|
||||
Reference in New Issue
Block a user