-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove filter props * Fix ColSpanArgs type * Remove Numeric filter, fix focus * Fix toggle filter * Update src/DataGrid.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Update src/DataGrid.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Update src/DataGrid.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Update stories/demos/HeaderFilters.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Update stories/demos/HeaderFilters.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Address comments * Add filters.enabled flag * Update stories/demos/HeaderFilters.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Move datalist outside the provider. * Use a static class name to filterable columns * Update stories/demos/HeaderFilters.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
- Loading branch information
1 parent
2f6181d
commit 76c5bb9
Showing
9 changed files
with
203 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,20 @@ | ||
import { css } from '@linaria/core'; | ||
|
||
const headerRowAndFilterRow = css` | ||
const headerRow = css` | ||
contain: strict; | ||
contain: size layout style paint; | ||
display: grid; | ||
grid-template-columns: var(--template-columns); | ||
grid-template-rows: var(--header-row-height); | ||
height: var(--header-row-height); // needed on Firefox | ||
line-height: var(--header-row-height); | ||
width: var(--row-width); | ||
position: sticky; | ||
top: 0; | ||
background-color: var(--header-background-color); | ||
font-weight: bold; | ||
z-index: 3; | ||
`; | ||
|
||
const headerRow = css` | ||
grid-template-rows: var(--header-row-height); | ||
height: var(--header-row-height); // needed on Firefox | ||
line-height: var(--header-row-height); | ||
top: 0; | ||
touch-action: none; | ||
`; | ||
|
||
export const headerRowClassname = `rdg-header-row ${headerRowAndFilterRow} ${headerRow}`; | ||
|
||
const filterRow = css` | ||
grid-template-rows: var(--filter-row-height); | ||
height: var(--filter-row-height); // needed on Firefox | ||
line-height: var(--filter-row-height); | ||
top: var(--header-row-height); | ||
`; | ||
|
||
export const filterRowClassname = `rdg-filter-row ${headerRowAndFilterRow} ${filterRow}`; | ||
export const headerRowClassname = `rdg-header-row ${headerRow}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.