fix(): add button effect to select and child components

This commit is contained in:
mhartington
2018-02-26 16:31:38 -05:00
parent 836268410f
commit 264fecbf22
3 changed files with 4 additions and 2 deletions

View File

@ -282,6 +282,7 @@ export class Alert implements OverlayInterface {
{i.label} {i.label}
</div> </div>
</div> </div>
{this.mode==="md" ? <ion-ripple-effect /> : null}
</button> </button>
))} ))}
</div> </div>
@ -301,6 +302,7 @@ export class Alert implements OverlayInterface {
{i.label} {i.label}
</div> </div>
</div> </div>
{this.mode==="md" ? <ion-ripple-effect /> : null}
</button> </button>
))} ))}
</div> </div>

View File

@ -12,8 +12,6 @@ ion-select {
} }
.item .select { .item .select {
position: static;
max-width: 45%; max-width: 45%;
} }

View File

@ -28,6 +28,7 @@ export class Select {
private labelId: string; private labelId: string;
private overlay: ActionSheet | Alert | Popover; private overlay: ActionSheet | Alert | Popover;
private styleTmr: any; private styleTmr: any;
private mode: string;
@Element() private el: HTMLIonSelectElement; @Element() private el: HTMLIonSelectElement;
@ -520,6 +521,7 @@ export class Select {
onBlur={this.onBlur.bind(this)} onBlur={this.onBlur.bind(this)}
class='select-cover'> class='select-cover'>
<slot></slot> <slot></slot>
{this.mode==="md" ? <ion-ripple-effect /> : null}
</button>, </button>,
<input type='hidden' name={this.name} value={this.value}/> <input type='hidden' name={this.name} value={this.value}/>
]; ];