You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Ionic v4] padding-left and padding-right not allowed on divs #14798
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
@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
@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. 🙂
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.
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.
Activity
brandyscarney commentedon Jul 18, 2018
Thanks for the issue! We changed the
padding-*attributes to usestartandendinstead ofleftandright, respectively.However, I do think this causes some inconsistencies with the way
marginworks and I'd like them to all behave the same. cc @manucorporat @camwiegerthttps://github.com/ionic-team/ionic/blob/master/core/src/css/padding.scss
peterpeterparker commentedon Jul 18, 2018
@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
brandyscarney commentedon Jul 19, 2018
@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. 🙂
peterpeterparker commentedon Jul 19, 2018
@brandyscarney thx for the extra information 👍 good good, then for the moment I just gonna ignore the margin/padding errors I may see 😉
manucorporat commentedon Jul 23, 2018
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.docs(breaking): add css utilities and link to migration guide
peterpeterparker commentedon Jul 24, 2018
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 👍
ionitron-bot commentedon Sep 1, 2018
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.