Android specific classes for ion-item

I’ve got an ion-list with many ion-items inside it, but some of the text is too long on android phones. Is there a specific android-only class that gets added to these directives when the app is built or some other way I could css android-only css for my ion-item?

when run on the device or in ionic lab, android devices will have the .platform-android class appended to the body. You can use that to select a specific class for android, such as .platform-android .item {…} . Or if using sass you can also use the parent selector for platform-android

1 Like