Skip to content

Commit e87a3c8

Browse files
committed
fix(headless/combobox): fix dark mode and add basic a11y tests
1 parent 1b26020 commit e87a3c8

File tree

18 files changed

+91
-16
lines changed

18 files changed

+91
-16
lines changed

.changeset/lazy-eels-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@qwik-ui/headless': patch
3+
---
4+
5+
fixed dark mode for combobox and added basic a11y test

apps/website/src/routes/docs/headless/combobox/examples/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const ContextChild = component$(() => {
4040
</ComboboxControl>
4141
<ComboboxPopover flip={true} gutter={8}>
4242
<ComboboxListbox
43-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
43+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
4444
optionRenderer$={(option: ResolvedOption, index: number) => (
4545
<ComboboxOption
4646
index={index}

apps/website/src/routes/docs/headless/combobox/examples/custom-filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default component$(() => {
4949
</ComboboxControl>
5050
<ComboboxPopover flip={true} gutter={8}>
5151
<ComboboxListbox
52-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
52+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
5353
optionRenderer$={(option: ResolvedOption, index: number) => (
5454
<ComboboxOption
5555
key={option.key}

apps/website/src/routes/docs/headless/combobox/examples/custom-keys.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default component$(() => {
5656
</ComboboxControl>
5757
<ComboboxPopover flip={true} gutter={8}>
5858
<ComboboxListbox
59-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
59+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
6060
optionRenderer$={(option: ResolvedOption, index: number) => {
6161
const pokemonOption = option.option as Pokemon;
6262
return (

apps/website/src/routes/docs/headless/combobox/examples/default-label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default component$(() => {
2727
</ComboboxControl>
2828
<ComboboxPopover gutter={8} hide="escaped">
2929
<ComboboxListbox
30-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
30+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
3131
optionRenderer$={(option: ResolvedOption, index: number) => (
3232
<ComboboxOption
3333
key={option.key}

apps/website/src/routes/docs/headless/combobox/examples/disable-blur.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default component$(() => {
4747
</ComboboxControl>
4848
<ComboboxPopover gutter={8} hide="referenceHidden">
4949
<ComboboxListbox
50-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
50+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
5151
optionRenderer$={(option: ResolvedOption, index: number) => (
5252
<ComboboxOption
5353
key={option.key}

apps/website/src/routes/docs/headless/combobox/examples/disabled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default component$(() => {
4242
</ComboboxControl>
4343
<ComboboxPopover flip={true} gutter={8}>
4444
<ComboboxListbox
45-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
45+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
4646
optionRenderer$={(option: ResolvedOption, index: number) => (
4747
<ComboboxOption
4848
key={option.key}

apps/website/src/routes/docs/headless/combobox/examples/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default component$(() => {
5555
</ComboboxControl>
5656
<ComboboxPopover class="rounded-sm" gutter={8}>
5757
<ComboboxListbox
58-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
58+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
5959
optionRenderer$={(option: ResolvedOption, index: number) => {
6060
const myData = option.option as MyData;
6161
return (

apps/website/src/routes/docs/headless/combobox/examples/hide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default component$(() => {
5050
</ComboboxControl>
5151
<ComboboxPopover gutter={8} hide="escaped">
5252
<ComboboxListbox
53-
class="rounded-base w-44 border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
53+
class="rounded-base w-44 border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
5454
optionRenderer$={(option: ResolvedOption, index: number) => (
5555
<ComboboxOption
5656
key={option.key}

apps/website/src/routes/docs/headless/combobox/examples/highlighted-index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default component$(() => {
3838
</ComboboxControl>
3939
<ComboboxPopover hide="escaped" gutter={8} size={true}>
4040
<ComboboxListbox
41-
class="rounded-base w-fit border-[1px] border-slate-400 bg-slate-900 px-4 py-2"
41+
class="rounded-base w-fit border-[1px] border-slate-400 px-4 py-2 dark:bg-slate-900 dark:text-white"
4242
optionRenderer$={(option: ResolvedOption, index: number) => (
4343
<ComboboxOption
4444
key={option.key}

0 commit comments

Comments
 (0)