@adia-ai/web-components 0.0.23 → 0.0.24

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.
@@ -1,8 +1,8 @@
1
- /* Safari 17.x bug: `:scope:hover` inside `@scope` doesn't match the scope
2
- root. Plain selector outside the @scope works. `:focus-visible` matches
3
- correctly inside @scope, so the combined `:hover, :focus-visible` rule
4
- is split `:hover` moves out, `:focus-visible` stays. See
5
- docs/BROWSER-COMPAT.md §3a. */
1
+ /* Safari 17.x bug: `:scope:hover` (Flavor A) and `:scope[selected]`
2
+ (Flavor B attribute-removal restyle) both fail inside `@scope`.
3
+ Selectors moved out. `:focus-visible` matches correctly inside `@scope`,
4
+ so the combined `:hover, :focus-visible` rule was split — `:hover`
5
+ moves out, `:focus-visible` stays. See docs/BROWSER-COMPAT.md §3a. */
6
6
  section-nav-item-ui:hover:not([disabled]) {
7
7
  background: var(--section-nav-item-bg-hover);
8
8
  color: var(--section-nav-item-fg-hover);
@@ -10,6 +10,23 @@ section-nav-item-ui:hover:not([disabled]) {
10
10
  section-nav-item-ui:hover:not([disabled]) > icon-ui {
11
11
  color: var(--section-nav-item-fg-hover);
12
12
  }
13
+ section-nav-item-ui[selected] {
14
+ background: var(--section-nav-item-bg-selected);
15
+ color: var(--section-nav-item-fg-selected);
16
+ font-weight: var(--section-nav-item-selected-weight);
17
+ }
18
+ section-nav-item-ui[selected] > icon-ui {
19
+ color: var(--section-nav-item-icon-fg-selected);
20
+ }
21
+ section-nav-item-ui[selected]:not(:has(> icon-ui))::before {
22
+ content: '';
23
+ position: absolute;
24
+ inset-inline-start: calc(var(--section-nav-item-row-px) - var(--a-space-1));
25
+ inset-block: 25%;
26
+ width: 2px;
27
+ border-radius: 1px;
28
+ background: var(--section-nav-item-accent);
29
+ }
13
30
 
14
31
  @scope (section-nav-item-ui) {
15
32
  :where(:scope) {
@@ -79,25 +96,7 @@ section-nav-item-ui:hover:not([disabled]) > icon-ui {
79
96
  color: var(--section-nav-item-fg-hover);
80
97
  }
81
98
 
82
- :scope[selected] {
83
- background: var(--section-nav-item-bg-selected);
84
- color: var(--section-nav-item-fg-selected);
85
- font-weight: var(--section-nav-item-selected-weight);
86
- }
87
- :scope[selected] > icon-ui {
88
- color: var(--section-nav-item-icon-fg-selected);
89
- }
90
-
91
- /* Selected accent bar — shown only when no leading icon */
92
- :scope[selected]:not(:has(> icon-ui))::before {
93
- content: '';
94
- position: absolute;
95
- inset-inline-start: calc(var(--section-nav-item-row-px) - var(--a-space-1));
96
- inset-block: 25%;
97
- width: 2px;
98
- border-radius: 1px;
99
- background: var(--section-nav-item-accent);
100
- }
99
+ /* :scope[selected] rules moved outside @scope — see Safari 17.x bug note at top. */
101
100
 
102
101
  :scope[disabled] {
103
102
  color: var(--section-nav-item-fg-disabled);