Grid class system is not working for Nebular Theme v4.0.0
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
- question about the decisions made in the repository
Issue description
Current behavior: I have placed the .row and .show-grid class on two cards in my content layout. However, the
Expected behavior: I expect for the two cards to be laid side-by-side on screens size tablet and larger. And only stack when the screen goes smaller (<768px).
Steps to reproduce: You can see the problem in the StackBlitz sample shown below. The BaristaMachineComponent template has a container with the Grid classes but nothing is happening.
<div class="row show-grid">
<div class="col-md-6">
<nb-card [size]="'medium'">
<nb-card-header>Drinks Menu</nb-card-header>
<nb-card-body>
<div *ngFor="let drink of menuDrinks">
<button nbButton
(click)="handleMakeDrink(drink.name)"
[disabled]="!drink.inStock">{{drink.name}}, {{drink.cost}}</button>
</div>
</nb-card-body>
</nb-card>
</div>
<div class="col-md-6">
<nb-card [size]="'medium'">
<nb-card-header>Inventory</nb-card-header>
<nb-list>
<nb-list-item *ngFor="let item of inventory">
{{item.ingredient}} - {{item.quantity}}
</nb-list-item>
</nb-list>
</nb-card>
<button nbButton status="warning" (click)="handleRestockInventory()">Restock inventory</button>
</div>
</div>
Other information:
npm, node, OS, Browser
<!--
Node, npm: v10.13.0 and 6.9.0
OS: Windows 10.
Browser: Firefox Quantum 67.0.1 (64-bit), Chrome 74.0.3729.169 (Official Build) (64-bit)
-->
Angular, Nebular
"@angular/animations": "~8.0.0",
"@angular/cdk": "^8.0.0",
"@angular/common": "~8.0.0",
"@angular/compiler": "~8.0.0",
"@angular/core": "~8.0.0",
"@angular/forms": "~8.0.0",
"@angular/platform-browser": "~8.0.0",
"@angular/platform-browser-dynamic": "~8.0.0",
"@angular/router": "~8.0.0",
"@nebular/eva-icons": "4.0.0",
"@nebular/theme": "^4.0.0",
"eva-icons": "^1.1.1",
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
Enable CSS Custom Properties Mode - Nebular
Starting with Nebular 4, Nebular can run in custom CSS properties mode in a simple configuration change. Setup Required. This guide assumes you...
Read more >Install Nebular - GitHub Pages
Customizable Angular UI Library based on Eva Design System with 40+ UI components, 4 visual themes, Auth and Security modules.
Read more >Layout Angular UI Component - Nebular - GitHub Pages
Customizable Angular UI Library based on Eva Design System with 40+ UI components, 4 visual themes, Auth and Security modules.
Read more >Use Theme Variables - Nebular
In case when you need to access theme variables from your application component, Nebular provides you with simple sass function called nb-theme ....
Read more >Nebular - Installation - GitHub Pages
Customizable Angular UI Library based on Eva Design System with 40+ UI components, 4 visual themes, Auth and Security modules.
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
Resolved:
The solution was to import both @nebular/bootstrap and regular bootstrap into the project. And then modify the src/styles.scss pull in the Bootstrap mixins and grids.
npm install bootstrap @nebular/bootstrap
Thanks to @LeonardHorng for the tip. 👍
Anybody know how to submit updates/enhancements to the documentation?