You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 59ce7a3
Browse filesBrowse the repository at this point in the historyBrowse files
|**Sizes and spacing**| Row height (compact / standard / comfortable), header height; body cell padding (horizontal, vertical); header cell padding (horizontal) |`grid.rowHeightCompact` / `Standard` / `Comfortable`, `grid.headerHeight`, `grid.cellPaddingX`, `grid.cellPaddingY`, **new**`grid.headerPaddingX`|
19
+
|**Borders and dividers**| Outer border width, colour and corner radius; show or hide column dividers (body, header, separately) and row dividers; divider width and colour |**new**`grid.borderWidth`, `grid.borderColor`, **new**`grid.borderRadius`; **new**`grid.columnDividerWidth`, `grid.headerColumnDividerWidth`, `grid.rowDividerWidth`, **new**`grid.columnDividerColor`, `grid.rowDividerColor` (default to `grid.borderColor`). "Hide" in the builder sets the width to `0`|
19
20
|**Buttons**| Toolbar button background, hover, text; primary button background and text |`toolbar.buttonBackground`, `buttonHoverBackground`, `buttonText`, `buttonPrimaryBackground`, `buttonPrimaryText`|
20
21
|**Column menu and panels**| Background, text, border, shadow, item hover / selected; font family, weight, size |`overlays.background`, `text`, `border`, `shadow`, `itemHoverBackground`, `itemSelectedBackground`, **new**`overlays.fontFamily`, **new**`overlays.fontWeight`, **new**`overlays.fontSize`|
21
22
|**Brand**| Primary colour (drives the derived tokens) |`colors.primary`|
22
23
23
-
**New keys (library change, additive):** 8 theme keys and their CSS variables.
24
+
**Not included: cell margin.** Cells are positioned to the pixel for virtualization, spanning, pinning and range outlines, so a margin would misalign them. Padding gives the same visual room; dividers in the grid background colour give visible gaps.
25
+
26
+
**New keys (library change, additive):** 16 theme keys and their CSS variables.
-**Column menu and panels:**`--ogx-overlay-font-family`, `--ogx-overlay-font-weight`, `--ogx-overlay-font-size`
30
+
-**Spacing:**`--ogx-grid-header-padding-x` (defaults to the cell padding)
31
+
-**Borders and dividers:**`--ogx-grid-border-width`, `--ogx-grid-border-radius`, `--ogx-grid-column-divider-width`, `--ogx-grid-header-column-divider-width`, `--ogx-grid-row-divider-width`, `--ogx-grid-column-divider-color`, `--ogx-grid-row-divider-color`. Today these are hard-coded `1px` borders in the CSS; the new variables default to exactly those values
27
32
28
33
**Defaults:** each falls back to today's value. Grids that don't set the new keys look exactly as they do now, and a layout test proves it.
29
34
@@ -45,7 +50,7 @@ Each control maps to an existing `GridTheme` key, or a **new** one (marked **new
45
50
46
51
## Workflow (how it gets built)
47
52
48
-
1.**Approve this proposal**, including the 8 new theme keys.
53
+
1.**Approve this proposal**, including the 16 new theme keys.
49
54
2.**Library step**, one agent:
50
55
- add the new keys to `GridTheme`, the CSS variables, the `DataGridThemeProvider` mapping, every built-in preset (same values as today) and the CSS rules that read them;
51
56
- tests: unit tests for the provider mapping, a browser test that the fonts apply to header cells, body cells and the column menu, and an LTR layout test showing no change for existing themes;
0 commit comments