Skip to content

Commit

Permalink
Update AG Grid theme header icon alignment (#2859)
Browse files Browse the repository at this point in the history
  • Loading branch information
alycrys authored Jan 11, 2024
1 parent 26382cc commit 1327994
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-years-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/ag-grid-theme": patch
---

Update header icon alignment. Adding space between the text and the icon, so the icon will be aligned opposite the text.
6 changes: 5 additions & 1 deletion packages/ag-grid-theme/css/_salt-ag-theme-mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,12 @@
top: var(--agGrid-column-separator-top);
}

.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {
margin-right: auto;
}

.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {
margin-left: var(--salt-spacing-100);
margin-left: auto;
}

.ag-keyboard-focus .ag-header-cell:focus:after {
Expand Down

1 comment on commit 1327994

@vercel
Copy link

@vercel vercel bot commented on 1327994 Jan 11, 2024

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.