question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-grid no-padding attribute not inheriting on ion-col

See original GitHub issue

Bug 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

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
brandyscarneycommented, Mar 7, 2019

@santoshyadav198613 Absolutely, thank you! 🙂

1reaction
santoshyadavdevcommented, Mar 7, 2019

Hi @brandyscarney , Can i take this up.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found