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.

Theme does not work when Angular Material is used

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior

Table is not themed correctly if Angular Material is used. CellClass is not respected.

Expected behavior

Have the same appearance of the examples.

Reproduction of the problem

Create a project using angular cli, add angular material and create a table using ngx-datatable.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Table version: 0.9.x
  • Angular version: 4.1.x
  • Browser: all
  • Language: TypeScript 2.X

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
RicardoVarandacommented, May 16, 2017

Hey @emauro,

Make sure you import the css in one of your parent components:

@import '/node_modules/@swimlane/ngx-datatable/release/themes/material.css';
1reaction
wgsl2005commented, Oct 24, 2017

@Ricardo Varanda Thank You! You saved my day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

App can't load Angular material theme - Stack Overflow
It's in the original post, the first image. I have tried putting it in the style.css file in the public file, the app.component.css...
Read more >
Theming Angular Material
You can use Angular Material without Sass by using a pre-built theme, described in Using a pre-built theme below. However, using the library's...
Read more >
How to change Angular material theme in just 5 minutes!
it's very easy to create a custom angular material theme. This will allow you to specify primary, accent and warning colors that will...
Read more >
Angular Material Theming System - Complete Guide
In the latest releases of Angular Material, the SASS theming API has been ... If we use theme mixins, it would generate all...
Read more >
Defining your own theme in Angular Material - Level Up Coding
After you run ng add @angular/material in your angular app, your styles.css will be updated from a relatively blank file with a $<app>-theme...
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