Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hideWhen/showWhen not working on toolbar (CSS issue) #6524

Closed
daviddk opened this issue May 13, 2016 · 2 comments
Closed

hideWhen/showWhen not working on toolbar (CSS issue) #6524

daviddk opened this issue May 13, 2016 · 2 comments

Comments

@daviddk
Copy link

daviddk commented May 13, 2016

When using the hideWhen or showWhen directive, toolbar isn't hidden.

<ion-toolbar showWhen="android">
</ion-toolbar>

<ion-toolbar hideWhen="iOs">
</ion-toolbar>

I can see the CSS class being applied using dev tools, but the class gets overwritten by other CSS lines that are appended to the app.ios.css file later on in the build.

ios.app.css line 987:
.hidden-show-when {
display: none;
}

ios.app.css line 7349:
.toolbar {
display: flex;
}

Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v6.1.0
Xcode version: Xcode 7.3 Build version 7D175

@brandyscarney
Copy link
Member

Thanks for the issue! This is a duplicate of #6270 and will be fixed in the next release. There's a work around in this comment: #6270 (comment) 😄

@brandyscarney
Copy link
Member

Ah! I read the issue wrong, it isn't a duplicate, but it should still be fixed by the fix in that issue.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants