Skip to content

Commit 12a64ae

Browse files
committed
[chrome] fix unstyled menu
1 parent 0cf4ff9 commit 12a64ae

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/chrome/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function App(props: {}, cx: ComponentContext) {
5353

5454
cx.mount = () => {
5555
for (const [key, value] of Object.entries(theme)) {
56-
cx.root.style.setProperty(`--${key}`, value);
56+
document.body.style.setProperty(`--${key}`, value);
5757
}
5858
};
5959

packages/chrome/src/components/Menu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ Menu.style = css`
153153
position: absolute;
154154
top: var(--y);
155155
left: var(--x);
156-
background: var(--bg02);
157-
border: 1px solid var(--fg4);
156+
background-color: var(--frame);
157+
border: 1px solid var(--toolbar_text);
158158
border-radius: 4px;
159159
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
160160
z-index: 1000;
@@ -170,7 +170,7 @@ Menu.style = css`
170170
transform: scale(100%);
171171
}
172172
.separator {
173-
border-top: 1px solid var(--fg4);
173+
border-top: 1px solid var(--toolbar_text);
174174
}
175175
:scope.closing {
176176
transform: scale(95%);
@@ -182,7 +182,7 @@ Menu.style = css`
182182
font-size: 0.8em;
183183
padding: 1em;
184184
text-align: left;
185-
color: var(--fg);
185+
color: var(--toolbar_text);
186186
187187
display: flex;
188188
align-items: center;

packages/chrome/src/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ body.light-mode {
8080

8181
:root {
8282
font-family: "Inter", system-ui, sans-serif;
83-
--tab-height: 33px;
83+
--tab-height: 37px;
8484

8585
--toolbarbutton-hover-background: color-mix(
8686
in srgb,

0 commit comments

Comments
 (0)