Skip to content

Commit

Permalink
[Ag Grid Theme] Remove added styles when autoHeaderHeight is applied (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alycrys authored Oct 30, 2023
1 parent 6da4d09 commit d200218
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-lies-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/ag-grid-theme": patch
---

Ag Grid Theme - remove override. set config correctly to wrap header text
5 changes: 0 additions & 5 deletions packages/ag-grid-theme/css/_salt-ag-theme-mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,6 @@
margin-left: var(--salt-spacing-100);
}

.ag-header-cell-auto-height .ag-header-cell-text {
overflow: hidden;
white-space: pre-wrap;
}

.ag-keyboard-focus .ag-header-cell:focus:after {
height: auto;
width: auto;
Expand Down
1 change: 1 addition & 0 deletions packages/ag-grid-theme/stories/examples/WrappedHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const WrappedHeader = (props: AgGridReactProps) => {
defaultColDef={{
...propsColDefs,
autoHeaderHeight: true,
wrapHeaderText: true,
}}
{...restAgGridProps}
{...props}
Expand Down

1 comment on commit d200218

@vercel
Copy link

@vercel vercel bot commented on d200218 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.