Skip to content

Commit

Permalink
Merge pull request #13 from jackkjhsu/master
Browse files Browse the repository at this point in the history
Fixed minor css issue that caused column header row to be hidden when column headers are populated.
  • Loading branch information
lekoala authored Feb 28, 2024
2 parents c045dc3 + 2ea6aec commit aaed7da
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/data-grid.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/data-grid.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/data-grid.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/data-grid.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions scss/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,11 @@ data-grid {
}
}

// Before grid init, or on loading
&[class=""],
&:not([class]),
&.dg-loading {
> table {
&[role=grid] {
tr.dg-head-columns {
display: none; //ensures the empty column header bar is hidden
}
// Hides column header row when it's not populated
> table {
&[role=grid] {
tr.dg-head-columns:is(:empty, :has(:first-child:not([id^=dg-col]))) {
display: none;
}
}
}
Expand Down

0 comments on commit aaed7da

Please sign in to comment.