Skip to content

[Ionic v4] Attribut no-margin doesn't set --margin variables to zero #14826

@peterpeterparker

Description

@peterpeterparker

Ionic Info
@ionic/angular: "4.0.0-alpha.11"

Describe the Bug
Using the attributes no-margin on an element doesn't set the css4 variables --margin zero

Steps to Reproduce
For example:

 <ion-button no-margin no-padding>Something</ion-button>

no-margin will be generate as

 ion-app [no-margin] {
    margin: 0;
 }

where no-padding will be correctly generated as

[no-padding] {
   padding: 0;
   --padding-start: 0;
   --padding-end: 0;
   --padding-top: 0;
   --padding-bottom: 0;       
}

Expected output

 ion-app [no-margin] {
    margin: 0;
   --margin-start: 0;
   --margin-end: 0;
   --margin-top: 0;
   --margin-bottom: 0;  
 }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions