@nevescloud/pip 2.11.1 → 2.11.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pip-core.esm.js +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevescloud/pip",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "Floating assistant bubble + panel + chat runtime. ESM, no build.",
5
5
  "type": "module",
6
6
  "main": "pip-core.esm.js",
package/pip-core.esm.js CHANGED
@@ -154,12 +154,14 @@ const CSS = `
154
154
  overflow: visible;
155
155
  margin: 0;
156
156
  padding: 14px;
157
- /* color-scheme inherits from the host page. Don't force "light dark"
158
- here that overrides a light-mode host whose user is on a dark OS,
159
- painting pip dark while the surrounding page is light (and
160
- defeating any --pip-* variables a host did set but happens to leave
161
- a fallback unmapped, e.g. --pip-input-bg). Hosts that want pip to
162
- follow OS preference set color-scheme on body. */
157
+ /* Force light as the default scheme for pip's chrome. The fallbacks
158
+ below use light-dark(); without an explicit value here CSS treats
159
+ the element as "normal", which lets the browser pick the dark
160
+ branch based on the visitor's OS preference painting pip dark
161
+ even when the host page is rendering light. Hosts that want dark
162
+ pip set --pip-* variables explicitly or override color-scheme to
163
+ dark on this rule. */
164
+ color-scheme: light;
163
165
  border: 1px solid var(--pip-border, light-dark(rgba(0,0,0,0.10), rgba(255,255,255,0.12)));
164
166
  border-radius: 14px;
165
167
  background: var(--pip-surface, light-dark(#fff, #212529));