|
1 | 1 | /* minimum accessible target area */ |
2 | | -.menulist[role='menu'] { |
| 2 | +:global(.reactist_menulist)[role='menu'] { |
3 | 3 | min-height: 44px; |
4 | 4 | max-height: var(--popover-available-height); /* defined by ariakit */ |
5 | 5 | overflow: auto; |
|
16 | 16 | z-index: var(--reactist-stacking-order-menu); |
17 | 17 | } |
18 | 18 |
|
19 | | -.menulist [role='menuitem'], |
20 | | -.menulist .menuGroupLabel { |
| 19 | +:global(.reactist_menulist) [role='menuitem'], |
| 20 | +:global(.reactist_menulist) :global(.reactist_menugroup__label) { |
21 | 21 | user-select: none; |
22 | 22 | outline: none; |
23 | 23 | text-align: left; |
|
31 | 31 | font-size: var(--reactist-font-size-copy); |
32 | 32 | } |
33 | 33 |
|
34 | | -.menulist .menuGroupLabel { |
| 34 | +:global(.reactist_menulist) :global(.reactist_menugroup__label) { |
35 | 35 | color: var(--reactist-content-secondary); |
36 | 36 | font-size: var(--reactist-font-size-copy); |
37 | 37 | } |
38 | 38 |
|
39 | | -.menulist [role='menuitem'] { |
| 39 | +:global(.reactist_menulist) [role='menuitem'] { |
40 | 40 | width: 100%; |
41 | 41 | box-sizing: border-box; |
42 | 42 | } |
43 | 43 |
|
44 | | -.menulist [role='menuitem']:hover, |
45 | | -.menulist [role='menuitem']:focus, |
46 | | -.menulist [role='menuitem'][aria-expanded='true'] { |
| 44 | +:global(.reactist_menulist) [role='menuitem']:hover, |
| 45 | +:global(.reactist_menulist) [role='menuitem']:focus, |
| 46 | +:global(.reactist_menulist) [role='menuitem'][aria-expanded='true'] { |
47 | 47 | color: var(--reactist-content-primary); |
48 | 48 | background-color: var(--reactist-bg-selected); |
49 | 49 | } |
50 | 50 |
|
51 | | -.menulist [role='menuitem'][aria-disabled='true'], |
52 | | -.menulist [role='menuitem']:disabled { |
| 51 | +:global(.reactist_menulist) [role='menuitem'][aria-disabled='true'], |
| 52 | +:global(.reactist_menulist) [role='menuitem']:disabled { |
53 | 53 | color: var(--reactist-content-secondary); |
54 | 54 | pointer-events: none; |
55 | 55 | } |
56 | 56 |
|
57 | | -.menulist a[role='menuitem'] { |
| 57 | +:global(.reactist_menulist) a[role='menuitem'] { |
58 | 58 | cursor: default; |
59 | 59 | text-decoration: none; |
60 | 60 | } |
61 | 61 |
|
62 | | -.menulist a[role='menuitem']:hover { |
| 62 | +:global(.reactist_menulist) a[role='menuitem']:hover { |
63 | 63 | text-decoration: none; |
64 | 64 | } |
65 | 65 |
|
66 | 66 | /* sub-menus need to be shifted a bit towards the top to be aligned with its menu item */ |
67 | | -.menulist [role='menu'] { |
| 67 | +:global(.reactist_menulist) [role='menu'] { |
68 | 68 | margin-top: -5px; |
69 | 69 | } |
70 | 70 |
|
71 | | -.menulist hr { |
| 71 | +:global(.reactist_menulist) hr { |
72 | 72 | border: none; |
73 | 73 | height: 1px; |
74 | 74 | background-color: var(--reactist-bg-selected); |
|
0 commit comments