Skip to content

Commit b3fe75d

Browse files
committed
fix: update demos to have an adequate colors in selectors
1 parent 040b207 commit b3fe75d

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

cmp/compiler/src/react/shared/LocaleSwitcher.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export function LocaleSwitcher({
9898
disabled={loading}
9999
className={className}
100100
style={{
101-
opacity: loading ? 0.5 : 1,
102101
cursor: loading ? "wait" : "pointer",
103102
...style,
104103
}}

cmp/demo/next16/app/globals.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:root {
44
--background: #ffffff;
55
--foreground: #171717;
6+
color-scheme: dark;
67
}
78

89
@theme inline {
@@ -24,3 +25,8 @@ body {
2425
color: var(--foreground);
2526
font-family: Arial, Helvetica, sans-serif;
2627
}
28+
29+
.locale-switcher option,
30+
optgroup {
31+
background-color: black;
32+
}

cmp/demo/next16/app/page.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default function Home() {
3131
{ code: "de", label: "Deutsch" },
3232
{ code: "ru", label: "Русский" },
3333
]}
34+
className="locale-switcher"
3435
/>
3536
</header>
3637
<div className="flex w-full grow flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
@@ -63,15 +64,17 @@ export default function Home() {
6364
{"</>"}
6465
</div>
6566
<div>
66-
What happens if I use a property {something.cool} and{" "}
67-
{something.translatedCool}
68-
</div>
69-
<div>
70-
Text external to the component is not translated: {externalText}
71-
</div>
72-
<div>
73-
Content that has text and other tags inside will br translated as a
74-
single entity: {translatableMixedContextFragment}
67+
<div>
68+
What happens if I use a property {something.cool} and{" "}
69+
{something.translatedCool}
70+
</div>
71+
<div>
72+
Text external to the component is not translated: {externalText}
73+
</div>
74+
<div>
75+
Content that has text and other tags inside will br translated as a
76+
single entity: {translatableMixedContextFragment}
77+
</div>
7578
</div>
7679
</div>
7780
</main>

0 commit comments

Comments
 (0)