@the-portland-company/shell 0.41.0 → 0.41.1
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 +12 -0
- package/dist/index.cjs +18 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.41.1 — 2026-08-03
|
|
2
|
+
|
|
3
|
+
### Fixed — the Chakra tooltip override in 0.41.0 did not actually take
|
|
4
|
+
|
|
5
|
+
0.41.0 pinned `Tooltip.baseStyle.bg`, but Chakra's own baseStyle sets
|
|
6
|
+
`bg: var(--tooltip-bg)` and then assigns that VARIABLE from its palette — and it
|
|
7
|
+
ships a `_dark` block that reassigns `--tooltip-bg` to `colors.gray.300`,
|
|
8
|
+
deliberately inverting in dark mode. Overriding `bg` alone therefore lost, and
|
|
9
|
+
the bubble still measured `#E8E8E8` live after the 0.41.0 deploy. Both the base
|
|
10
|
+
and the `_dark` block now pin `--tooltip-bg` / `--tooltip-fg` /
|
|
11
|
+
`--popper-arrow-bg` to the shared panel surface, with a test asserting it.
|
|
12
|
+
|
|
1
13
|
## 0.41.0 — 2026-08-03
|
|
2
14
|
|
|
3
15
|
### Fixed — the expanded sub-menu was the same colour as the left bar
|
package/dist/index.cjs
CHANGED
|
@@ -588,6 +588,23 @@ var components = {
|
|
|
588
588
|
// Chakra tooltip and the native chrome's TopBarTooltip look identical.
|
|
589
589
|
Tooltip: {
|
|
590
590
|
baseStyle: {
|
|
591
|
+
// Chakra's own baseStyle sets `bg: var(--tooltip-bg)` and then assigns
|
|
592
|
+
// `--tooltip-bg` from its palette, so overriding `bg` alone loses — the
|
|
593
|
+
// variable still resolves to Chakra's value and the bubble stayed light
|
|
594
|
+
// (measured #E8E8E8 live after a first attempt that set only `bg`). Pin
|
|
595
|
+
// the VARIABLE, which is what both the bubble and the arrow read.
|
|
596
|
+
"--tooltip-bg": "var(--panel-elevated, #1F1F1F)",
|
|
597
|
+
"--tooltip-fg": "var(--foreground, #E8E8E8)",
|
|
598
|
+
"--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)",
|
|
599
|
+
// Chakra ALSO ships a `_dark` block that re-assigns those two variables
|
|
600
|
+
// to `colors.gray.300` / `colors.gray.900` — i.e. it deliberately INVERTS
|
|
601
|
+
// in dark mode. That block wins over the base keys, so it has to be
|
|
602
|
+
// overridden explicitly or the bubble goes light again.
|
|
603
|
+
_dark: {
|
|
604
|
+
"--tooltip-bg": "var(--panel-elevated, #1F1F1F)",
|
|
605
|
+
"--tooltip-fg": "var(--foreground, #E8E8E8)",
|
|
606
|
+
"--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)"
|
|
607
|
+
},
|
|
591
608
|
bg: "var(--panel-elevated, #1F1F1F)",
|
|
592
609
|
color: "var(--foreground, #E8E8E8)",
|
|
593
610
|
border: "1px solid",
|
|
@@ -596,10 +613,7 @@ var components = {
|
|
|
596
613
|
boxShadow: "var(--shadow-soft)",
|
|
597
614
|
fontSize: "12px",
|
|
598
615
|
paddingX: 3,
|
|
599
|
-
paddingY: 2
|
|
600
|
-
// Chakra draws the arrow with its own bg var; keep it on the same surface
|
|
601
|
-
// so the pointer never reads as a different colour than the bubble.
|
|
602
|
-
"--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)"
|
|
616
|
+
paddingY: 2
|
|
603
617
|
}
|
|
604
618
|
},
|
|
605
619
|
Alert: {
|