Skip to content

[Ionic v4] padding-left and padding-right not allowed on divs #14798

Closed

Description

@peterpeterparker

Bug Report

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

Describe the Bug
Attributes padding-left and padding-right aren't allowed on divs. For example margin, margin-left or padding are ok, but not padding-left and padding-right

Related Code

 <div padding-left padding-right>
     no padding
 </div>

Expected Behavior
Being able to use padding-left and padding-right on divs too

Activity

  1. brandyscarney commented on Jul 18, 2018

    @brandyscarney
    Member

    Thanks for the issue! We changed the padding-* attributes to use start and end instead of left and right, respectively.

    However, I do think this causes some inconsistencies with the way margin works and I'd like them to all behave the same. cc @manucorporat @camwiegert

    https://github.com/ionic-team/ionic/blob/master/core/src/css/padding.scss

  2. peterpeterparker commented on Jul 18, 2018

    @peterpeterparker
    ContributorAuthor

    @brandyscarney thx for the feedback. furthermore than the inconsistencies, may I ask, is that documented somewhere? maybe I missed that info but I didn't saw it listed in the breaking changes list

  3. brandyscarney commented on Jul 19, 2018

    @brandyscarney
    Member

    @peterpeterparker No it hasn't been documented. It's been on my list of things to look at. I didn't want to document it because I'm considering adding it back in. We need to have some internal discussion around those attributes. 🙂

  4. peterpeterparker commented on Jul 19, 2018

    @peterpeterparker
    ContributorAuthor

    @brandyscarney thx for the extra information 👍 good good, then for the moment I just gonna ignore the margin/padding errors I may see 😉

  5. added
    package: core
    and removed
    package: core
    on Jul 20, 2018
  6. manucorporat commented on Jul 23, 2018

    @manucorporat
    Contributor

    I think we should remove [margin-left] and [margin-right], supporting both now that we have CSS variables in place would add too much complexity for little (or inexistent) win.

  7. self-assigned this
    on Jul 23, 2018
  8. peterpeterparker commented on Jul 24, 2018

    @peterpeterparker
    ContributorAuthor

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

    Also thx for adding a note about it in the breaking changes list 👍

  9. 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.

  10. 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

package: core

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