fix(action-sheet): remove button dependency and fix styles

This commit is contained in:
Brandy Carney
2018-02-07 17:57:09 -05:00
parent 0514cec902
commit a4f6086bcc
3 changed files with 20 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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}