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

.platform-android CSS Tags not working #10401

Closed
peterbetos opened this issue Feb 11, 2017 · 5 comments
Closed

.platform-android CSS Tags not working #10401

peterbetos opened this issue Feb 11, 2017 · 5 comments
Labels
needs: reply the issue needs a response from the user

Comments

@peterbetos
Copy link

peterbetos commented Feb 11, 2017

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
.platform-android5_0 { } CSS Tag doesn't work on Ionic2

Expected behavior:
The tag was expected to work as per this forum:
https://forum.ionicframework.com/t/platform-version-specific-css/79162

Steps to reproduce:
Add the following code on theme/variables.scss:

.platform-android5_0 {
  ion-header {
    margin-top: 20px;
  }
}

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Not installed
@jgw96 jgw96 added css labels Feb 13, 2017
@jgw96
Copy link
Contributor

jgw96 commented Feb 13, 2017

Hello, thanks for using Ionic! We will take a look into this.

@jgw96
Copy link
Contributor

jgw96 commented Feb 17, 2017

Hey @peterbetos , are you on an android 5.x device when you run into this issue?

@jgw96 jgw96 added the needs: reply the issue needs a response from the user label Feb 17, 2017
@peterbetos
Copy link
Author

I have an Android 6.0 device. It seems to work with this one:

.platform-android6 {
  ion-header {
    margin-top: 20px;
  }
}

How about needing to anticipate succeeding android versions? Do I need to create a CSS entry for other Android versions? Below tag doesn't work on Android 6:

.platform-android5 {
  ion-header {
    margin-top: 20px;
  }
}

@peterbetos
Copy link
Author

Since the CSS tag is working on the individual versions of Android, we can close this in the meantime. Thanks.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 4, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: reply the issue needs a response from the user
Projects
None yet
Development

No branches or pull requests

2 participants