mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(action-sheet): remove button dependency and fix styles
This commit is contained in:
@ -71,7 +71,7 @@
|
||||
font-size: $action-sheet-md-icon-font-size;
|
||||
}
|
||||
|
||||
.action-sheet-md .action-sheet-group .button-inner {
|
||||
.action-sheet-md .action-sheet-button-inner {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
|
||||
@ -12,6 +12,9 @@ ion-action-sheet {
|
||||
|
||||
width: $action-sheet-width;
|
||||
height: $action-sheet-width;
|
||||
|
||||
font-smoothing: antialiased;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.action-sheet-wrapper {
|
||||
@ -34,12 +37,26 @@ ion-action-sheet {
|
||||
|
||||
border: 0;
|
||||
|
||||
font-family: inherit;
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.action-sheet-button-inner {
|
||||
display: flex;
|
||||
|
||||
flex-flow: row nowrap;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.action-sheet-container {
|
||||
display: flex;
|
||||
|
||||
|
||||
@ -262,7 +262,7 @@ export class ActionSheet {
|
||||
: null}
|
||||
{buttons.map(b =>
|
||||
<button class={buttonClass(b)} onClick={() => this.buttonClick(b)}>
|
||||
<span class='button-inner'>
|
||||
<span class='action-sheet-button-inner'>
|
||||
{b.icon
|
||||
? <ion-icon name={b.icon} class='action-sheet-icon' />
|
||||
: null}
|
||||
@ -277,7 +277,7 @@ export class ActionSheet {
|
||||
class={buttonClass(cancelButton)}
|
||||
onClick={() => this.buttonClick(cancelButton)}
|
||||
>
|
||||
<span class='button-inner'>
|
||||
<span class='action-sheet-button-inner'>
|
||||
{cancelButton.icon
|
||||
? <ion-icon
|
||||
name={cancelButton.icon}
|
||||
|
||||
Reference in New Issue
Block a user