mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(button): bar-button uses inner span as flexbox
- Fixed block/full buttons, now there are display: block - Fixes <ion-segment-button> warnings
This commit is contained in:
@@ -20,7 +20,7 @@ class MyCmpTest{}
|
||||
<button><ion-icon name="star"></ion-icon></button>
|
||||
</ion-buttons>
|
||||
<ion-buttons end>
|
||||
<button>S1</button>
|
||||
<button>S1g</button>
|
||||
</ion-buttons>
|
||||
</ion-navbar>
|
||||
<ion-content>
|
||||
@@ -74,7 +74,7 @@ class FirstPage {
|
||||
|
||||
setPages() {
|
||||
let items = [
|
||||
{page: PrimaryHeaderPage}
|
||||
{ page: PrimaryHeaderPage }
|
||||
];
|
||||
|
||||
this.nav.setPages(items);
|
||||
@@ -89,7 +89,7 @@ class FirstPage {
|
||||
}
|
||||
|
||||
pushFullPage() {
|
||||
this.nav.push(FullPage, { id: 8675309, myData: [1,2,3,4] } );
|
||||
this.nav.push(FullPage, { id: 8675309, myData: [1, 2, 3, 4] });
|
||||
}
|
||||
|
||||
pushAnother() {
|
||||
@@ -139,8 +139,8 @@ class FullPage {
|
||||
|
||||
setPages() {
|
||||
let items = [
|
||||
{page: FirstPage},
|
||||
{page: PrimaryHeaderPage}
|
||||
{ page: FirstPage },
|
||||
{ page: PrimaryHeaderPage }
|
||||
];
|
||||
|
||||
this.nav.setPages(items);
|
||||
@@ -190,6 +190,9 @@ class FullPage {
|
||||
template: `
|
||||
<ion-navbar *navbar primary>
|
||||
<ion-title>Primary Color Page Header</ion-title>
|
||||
<ion-buttons end>
|
||||
<button>S1g</button>
|
||||
</ion-buttons>
|
||||
</ion-navbar>
|
||||
<ion-content padding>
|
||||
<p><button class="e2eFrom3To2" (click)="nav.pop()">Pop</button></p>
|
||||
@@ -218,7 +221,7 @@ class PrimaryHeaderPage {
|
||||
}
|
||||
|
||||
pushFullPage() {
|
||||
this.nav.push(FullPage, { id: 8675309, myData: [1,2,3,4] } );
|
||||
this.nav.push(FullPage, { id: 8675309, myData: [1, 2, 3, 4] });
|
||||
}
|
||||
|
||||
insert() {
|
||||
|
||||
Reference in New Issue
Block a user