Skip to content

nz-table scss problem #8565

Answered by crabvendor
Berius asked this question in Q&A
Jun 4, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Having similar issues, on top of this:

  • table cannot be styled by overriding some less variables; eg. table font size works fine, but hover color doesn't
  • style files are imported correctly, other imported components works fine
  • empty indicator doesn't show up when table is empty
// Custom Theming for NG-ZORRO
// For more information: https://ng.ant.design/docs/customize-theme/en
@import "../node_modules/ng-zorro-antd/ng-zorro-antd.less";

// @primary-color: #1890ff;
@table-header-bg: red;
@table-border-color: red;
@table-row-hover-bg: red;

@table-font-size: 40px;

@primary-color: green;

Result:

Empty table:

ng-zorro-antd version: 17.4.0
angular version: 17.3.0
node: tried both 20.9 and…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Berius
Comment options

Answer selected by Berius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants