fix: add !important to shadcn aggrid styling (#4871)
* 📝 (App.css): add style for ag-cell class to remove internal calculated line height for better UI appearance * 📝 (App.css): update CSS to remove internal calculated line height for specific elements in ag-grid cells * Fix ag grid shadcn theme --------- Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
803b5b2c1d
commit
fc5632af78
1 changed files with 15 additions and 15 deletions
|
|
@ -1,23 +1,23 @@
|
|||
/* set the background color of many elements across the grid */
|
||||
.ag-theme-shadcn {
|
||||
--ag-foreground-color: hsl(var(--foreground));
|
||||
--ag-background-color: hsl(var(--background));
|
||||
--ag-secondary-foreground-color: hsl(var(--secondary-foreground));
|
||||
--ag-data-color: hsl(var(--foreground));
|
||||
--ag-header-foreground-color: hsl(var(--muted-foreground));
|
||||
--ag-header-background-color: hsl(var(--background));
|
||||
--ag-tooltip-background-color: hsl(var(--muted));
|
||||
--ag-disabled-foreground-color: hsl(var(--muted-foreground));
|
||||
--ag-border-color: hsl(var(--border));
|
||||
--ag-selected-row-background-color: hsl(var(--accent));
|
||||
--ag-menu-background-color: hsl(var(--accent));
|
||||
--ag-panel-background-color: hsl(var(--accent));
|
||||
--ag-row-hover-color: hsl(var(--primary-foreground));
|
||||
--ag-header-height: 2.5rem;
|
||||
--ag-foreground-color: hsl(var(--foreground)) !important;
|
||||
--ag-background-color: hsl(var(--background)) !important;
|
||||
--ag-secondary-foreground-color: hsl(var(--secondary-foreground)) !important;
|
||||
--ag-data-color: hsl(var(--foreground)) !important;
|
||||
--ag-header-foreground-color: hsl(var(--muted-foreground)) !important;
|
||||
--ag-header-background-color: hsl(var(--background)) !important;
|
||||
--ag-tooltip-background-color: hsl(var(--muted)) !important;
|
||||
--ag-disabled-foreground-color: hsl(var(--muted-foreground)) !important;
|
||||
--ag-border-color: hsl(var(--border)) !important;
|
||||
--ag-selected-row-background-color: hsl(var(--accent)) !important;
|
||||
--ag-menu-background-color: hsl(var(--accent)) !important;
|
||||
--ag-panel-background-color: hsl(var(--accent)) !important;
|
||||
--ag-row-hover-color: hsl(var(--primary-foreground)) !important;
|
||||
--ag-header-height: 2.5rem !important;
|
||||
}
|
||||
|
||||
.ag-theme-shadcn .ag-paging-panel {
|
||||
height: 3rem;
|
||||
height: 3rem !important;
|
||||
}
|
||||
|
||||
.ag-row .ag-cell {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue