@goplusvn/core 0.1.10 → 0.1.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.11 — print: force light colours on the print surface
4
+
5
+ - **Fix faded print output in dark mode.** Print pages render under the app's
6
+ shared `<html class="dark">`, so the print surface inherited dark mode's light
7
+ `--foreground` and rendered as faded grey text on the white page (preview and
8
+ PDF alike). `PrintStyles` now pins `color: #000; color-scheme: light;` on
9
+ `.print-container, #print-content`, keeping every shared print template
10
+ black-on-white regardless of the active theme.
11
+
3
12
  ## 0.1.8 — branding wiring + auth/rbac unification + clean typecheck
4
13
 
5
14
  - **Single source for permission checks (security fix).** `@goerp/core/rbac`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@goplusvn/core",
3
3
  "description": "GoPlusVN Platform Kit - ERP kernel: layout, RBAC, CRUD, multi-tenant, system pages",
4
- "version": "0.1.10",
4
+ "version": "0.1.11",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org",
@@ -71,6 +71,11 @@ export function PrintStyles({ pageSize = "A4" }: PrintStylesProps) {
71
71
  padding: 20px;
72
72
  font-family: "Times New Roman", serif;
73
73
  background: white;
74
+ /* Force light document colours so the page never inherits the app's
75
+ dark-mode foreground (which would render as faded grey text on the
76
+ white print surface). Both preview and @media print stay black-on-white. */
77
+ color: #000;
78
+ color-scheme: light;
74
79
  }
75
80
 
76
81
  /* Base layout */