@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/dist/index.js CHANGED
@@ -581,6 +581,23 @@ var components = {
581
581
  // Chakra tooltip and the native chrome's TopBarTooltip look identical.
582
582
  Tooltip: {
583
583
  baseStyle: {
584
+ // Chakra's own baseStyle sets `bg: var(--tooltip-bg)` and then assigns
585
+ // `--tooltip-bg` from its palette, so overriding `bg` alone loses — the
586
+ // variable still resolves to Chakra's value and the bubble stayed light
587
+ // (measured #E8E8E8 live after a first attempt that set only `bg`). Pin
588
+ // the VARIABLE, which is what both the bubble and the arrow read.
589
+ "--tooltip-bg": "var(--panel-elevated, #1F1F1F)",
590
+ "--tooltip-fg": "var(--foreground, #E8E8E8)",
591
+ "--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)",
592
+ // Chakra ALSO ships a `_dark` block that re-assigns those two variables
593
+ // to `colors.gray.300` / `colors.gray.900` — i.e. it deliberately INVERTS
594
+ // in dark mode. That block wins over the base keys, so it has to be
595
+ // overridden explicitly or the bubble goes light again.
596
+ _dark: {
597
+ "--tooltip-bg": "var(--panel-elevated, #1F1F1F)",
598
+ "--tooltip-fg": "var(--foreground, #E8E8E8)",
599
+ "--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)"
600
+ },
584
601
  bg: "var(--panel-elevated, #1F1F1F)",
585
602
  color: "var(--foreground, #E8E8E8)",
586
603
  border: "1px solid",
@@ -589,10 +606,7 @@ var components = {
589
606
  boxShadow: "var(--shadow-soft)",
590
607
  fontSize: "12px",
591
608
  paddingX: 3,
592
- paddingY: 2,
593
- // Chakra draws the arrow with its own bg var; keep it on the same surface
594
- // so the pointer never reads as a different colour than the bubble.
595
- "--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)"
609
+ paddingY: 2
596
610
  }
597
611
  },
598
612
  Alert: {