Skip to content

RC0 - Impossible to work semantically? #8533

@dgroh

Description

@dgroh

Short description of the problem:

We work very component based (reactive) and we try to follow css semantics - we almost don't use css classes. This has worked well untill the beta 11. Now, every componet has its own class, i.e ion-card with the classes card-md, card-ios and card-wp.

What behavior are you expecting?

I want to write the following css:

my-card-main-component {
    ion-card-header {
        padding-right: $padding-left-right;
        padding-left: $padding-left-right;
    }
}

This does not work, as the card-md class overrides it.

Steps to reproduce:

  1. Try to create css semantically like example above

Which Ionic Version? 2 RC0

Run ionic info from terminal/cmd prompt: (paste output below)

Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Node Version: v4.6.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions