@gravionlabs/helix-ag-grid 22.6.0 → 22.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,11 @@ Every colour is a `var(--h-*)` reference (`--h-content-background`, `--h-text-co
|
|
|
32
32
|
grid follows dark mode (`.app-dark`) and a primary colour that changes at runtime without any code. Refine it with
|
|
33
33
|
`helixGridTheme.withParams({ rowHeight: 36 })`.
|
|
34
34
|
|
|
35
|
+
The theme needs no stylesheet because AG Grid injects its CSS at runtime as `<style>` elements, so a content security
|
|
36
|
+
policy has to allow inline styles. In a Tauri app that also means `"dangerousDisableAssetCspModification": ["style-src"]`;
|
|
37
|
+
otherwise the grid shows its headers as stacked text without rows. See
|
|
38
|
+
[Tauri content security policy](https://github.com/GravionLabs/helix/blob/main/docs/HELIX-DESKTOP.md#tauri-content-security-policy).
|
|
39
|
+
|
|
35
40
|
**Why the Theming API and not CSS variables:** since AG Grid 33 the default theme is configured through the `theme`
|
|
36
41
|
grid option; the `--ag-*` CSS custom properties only drive the legacy `ag-theme-*` classes (`theme="legacy"`). The
|
|
37
42
|
Theming API takes `var()` references as parameter values, is typed, and needs no stylesheet. The package still ships
|