Skip to content

Commit 4a0739f

Browse files
authored
fix(docs): missing tw nested groups in docs (#3751)
1 parent def45d4 commit 4a0739f

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

apps/docs/app/examples/perf/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const MyInput = extendVariants(Input, {
106106
"focus-within:bg-zinc-100",
107107
"data-[hover=true]:border-zinc-600",
108108
"data-[hover=true]:bg-zinc-100",
109-
"group-data-[focus=true]:border-zinc-600",
109+
"group-data-[focus=true]/input:border-zinc-600",
110110
// dark theme
111111
"dark:bg-zinc-900",
112112
"dark:border-zinc-800",

apps/docs/components/theme-switch.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const ThemeSwitch: FC<ThemeSwitchProps> = ({className, classNames}) => {
5757
"bg-transparent",
5858
"rounded-lg",
5959
"flex items-center justify-center",
60-
"group-data-[selected=true]:bg-transparent",
60+
"group-data-[selected=true]/toggle:bg-transparent",
6161
"!text-default-600 dark:!text-default-500",
6262
"pt-px",
6363
"px-0",

apps/docs/content/components/input/custom-styles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export default function App() {
5252
"backdrop-saturate-200",
5353
"hover:bg-default-200/70",
5454
"dark:hover:bg-default/70",
55-
"group-data-[focus=true]:bg-default-200/50",
56-
"dark:group-data-[focus=true]:bg-default/60",
55+
"group-data-[focus=true]/input:bg-default-200/50",
56+
"dark:group-data-[focus=true]/input:bg-default/60",
5757
"!cursor-text",
5858
],
5959
}}

apps/docs/content/components/select/custom-styles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export default function App() {
212212
className="max-w-xs"
213213
variant="bordered"
214214
classNames={{
215-
label: "group-data-[filled=true]:-translate-y-5",
215+
label: "group-data-[filled=true]/select:-translate-y-5",
216216
trigger: "min-h-16",
217217
listboxWrapper: "max-h-[400px]",
218218
}}

apps/docs/content/components/switch/custom-styles.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export default function App() {
1111
),
1212
wrapper: "p-0 h-4 overflow-visible",
1313
thumb: cn("w-6 h-6 border-2 shadow-lg",
14-
"group-data-[hover=true]:border-primary",
14+
"group-data-[hover=true]/toggle:border-primary",
1515
//selected
16-
"group-data-[selected=true]:ml-6",
16+
"group-data-[selected=true]/toggle:ml-6",
1717
// pressed
18-
"group-data-[pressed=true]:w-7",
19-
"group-data-[selected]:group-data-[pressed]:ml-4",
18+
"group-data-[pressed=true]/toggle:w-7",
19+
"group-data-[selected]:group-data-[pressed]/toggle:ml-4",
2020
),
2121
}}
2222
>

apps/docs/content/customization/custom-variants/slots-component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const MyInput = extendVariants(Input, {
4747
"focus-within:bg-zinc-100",
4848
"data-[hover=true]:border-zinc-600",
4949
"data-[hover=true]:bg-zinc-100",
50-
"group-data-[focus=true]:border-zinc-600",
50+
"group-data-[focus=true]/input:border-zinc-600",
5151
"dark:bg-zinc-900",
5252
"dark:border-zinc-800",
5353
"dark:data-[hover=true]:bg-zinc-900",

apps/docs/content/docs/customization/custom-variants.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const MyInput = extendVariants(Input, {
133133
"focus-within:bg-zinc-100",
134134
"data-[hover=true]:border-zinc-600",
135135
"data-[hover=true]:bg-zinc-100",
136-
"group-data-[focus=true]:border-zinc-600",
136+
"group-data-[focus=true]/input:border-zinc-600",
137137
// dark theme
138138
"dark:bg-zinc-900",
139139
"dark:border-zinc-800",

packages/components/select/stories/select.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ const CustomStylesTemplate = ({color, variant, ...args}: SelectProps<User>) => {
505505
<Select
506506
className="max-w-xs"
507507
classNames={{
508-
label: "group-data-[filled=true]:-translate-y-5",
508+
label: "group-data-[filled=true]/select:-translate-y-5",
509509
trigger: "min-h-16",
510510
listboxWrapper: "max-h-[400px]",
511511
}}

0 commit comments

Comments
 (0)