Skip to content

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

Closed

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;  
 }

Activity

  1. peterpeterparker commented on Jul 22, 2018

    @peterpeterparker
    ContributorAuthor

    @brandyscarney same as #14798?

    if yes, should I then close this issue?

  2. brandyscarney commented on Jul 23, 2018

    @brandyscarney
    Member

    @peterpeterparker Thanks 🙂 They're related and hopefully we'll solve them both at once but I'll leave this open to make sure it gets fixed.

  3. peterpeterparker commented on Jul 23, 2018

    @peterpeterparker
    ContributorAuthor

    @brandyscarney excellent, thx for the feedback

  4. self-assigned this
    on Jul 23, 2018
  5. peterpeterparker commented on Jul 24, 2018

    @peterpeterparker
    ContributorAuthor

    Tested, I could confirm the fix in v4.0.0-alpha.12, thx 👍

  6. ionitron-bot commented on Sep 1, 2018

    @ionitron-bot

    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.

  7. locked and limited conversation to collaborators on Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions