fix(show-hide-when): add !important to display as this should always take precedence

fixes #6270
This commit is contained in:
Brandy Carney
2016-04-21 16:14:21 -04:00
parent 1ca4f374e0
commit 617b7ac000
2 changed files with 13 additions and 3 deletions

View File

@@ -5,10 +5,10 @@
// Applied by the showWhen directive
.hidden-show-when {
display: none;
display: none !important;
}
// Applied by the hideWhen directive
.hidden-hide-when {
display: none;
display: none !important;
}

View File

@@ -1,8 +1,18 @@
<ion-toolbar><ion-title>Show/Hide When</ion-title></ion-toolbar>
<ion-toolbar>
<ion-title>Show/Hide When</ion-title>
<ion-buttons end>
<button showWhen="ios">iOS</button>
<button showWhen="windows">Windows</button>
<button showWhen="android">Android</button>
</ion-buttons>
</ion-toolbar>
<ion-content padding>
<button showWhen="ios">iOS</button>
<button showWhen="windows">Windows</button>
<button showWhen="android">Android</button>
<p showWhen="ios" style="background:blue; color:white">
showWhen="ios"