bug: ion-grid no-padding attribute not inheriting on ion-col
See original GitHub issueBug Report
Ionic version: [x] 4.x
Columns have padding between individual columns, however, the padding can be removed from the grid and columns by adding
no-padding
on the grid.
Source: https://ionicframework.com/docs/layout/grid
Current behavior:
Giving the ion-grid no-padding
, the ion-cols still have padding.
Expected behavior: The ion-cols should not have padding, like mentioned in the documentation and was before in ionic 3.
Steps to reproduce:
Start with the ionic blank template, go to the home.page.html template and add:
Related code:
<ion-grid no-padding>
<ion-row>
<ion-col>
Test
</ion-col>
</ion-row>
</ion-grid>
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.1
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.3.0
System:
NodeJS : v8.11.3 (/usr/local/bin/node)
npm : 6.7.0
OS : macOS Mojave
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
ionic 2 ion-grid / ion-row / ion-col not working when used as a ...
Was migrating from ionic 1, so thought it would be easy to use existing components with attributes. Also want to know if I...
Read more >ion-col: Column Component Padding, Size and Other Properties
ion-col is a column component that goes inside a row. Content within a grid goes inside of a column. Read more on column...
Read more >[Solved]-ionic3 footer with ion-tabs-angular.js
I wanted to do the same and ended up not using tabs and created a footer component that I included on every page....
Read more >Ionic Contents Are Not Aligning Properly - ADocLib
I am facing an issue that Swiper slider is not working on a single page if I ... were using <ion-grid no-padding> <ion-row...
Read more >ionic 3 navigation menu does not show up - Anycodings.com
For your issue you may try this if(loggIn == true){ this.menuCtrl.enable(true, 'login'); }else{ this.menuCtrl.enable(false, 'login'); }.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@santoshyadav198613 Absolutely, thank you! 🙂
Hi @brandyscarney , Can i take this up.