Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): missing tw nested groups in docs #3751

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/docs/app/examples/perf/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const MyInput = extendVariants(Input, {
"focus-within:bg-zinc-100",
"data-[hover=true]:border-zinc-600",
"data-[hover=true]:bg-zinc-100",
"group-data-[focus=true]:border-zinc-600",
"group-data-[focus=true]/input:border-zinc-600",
// dark theme
"dark:bg-zinc-900",
"dark:border-zinc-800",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/theme-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ThemeSwitch: FC<ThemeSwitchProps> = ({className, classNames}) => {
"bg-transparent",
"rounded-lg",
"flex items-center justify-center",
"group-data-[selected=true]:bg-transparent",
"group-data-[selected=true]/toggle:bg-transparent",
"!text-default-600 dark:!text-default-500",
"pt-px",
"px-0",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/input/custom-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default function App() {
"backdrop-saturate-200",
"hover:bg-default-200/70",
"dark:hover:bg-default/70",
"group-data-[focus=true]:bg-default-200/50",
"dark:group-data-[focus=true]:bg-default/60",
"group-data-[focus=true]/input:bg-default-200/50",
"dark:group-data-[focus=true]/input:bg-default/60",
"!cursor-text",
],
}}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/select/custom-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default function App() {
className="max-w-xs"
variant="bordered"
classNames={{
label: "group-data-[filled=true]:-translate-y-5",
label: "group-data-[filled=true]/select:-translate-y-5",
trigger: "min-h-16",
listboxWrapper: "max-h-[400px]",
}}
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/components/switch/custom-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export default function App() {
),
wrapper: "p-0 h-4 overflow-visible",
thumb: cn("w-6 h-6 border-2 shadow-lg",
"group-data-[hover=true]:border-primary",
"group-data-[hover=true]/toggle:border-primary",
//selected
"group-data-[selected=true]:ml-6",
"group-data-[selected=true]/toggle:ml-6",
// pressed
"group-data-[pressed=true]:w-7",
"group-data-[selected]:group-data-[pressed]:ml-4",
"group-data-[pressed=true]/toggle:w-7",
"group-data-[selected]:group-data-[pressed]/toggle:ml-4",
),
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MyInput = extendVariants(Input, {
"focus-within:bg-zinc-100",
"data-[hover=true]:border-zinc-600",
"data-[hover=true]:bg-zinc-100",
"group-data-[focus=true]:border-zinc-600",
"group-data-[focus=true]/input:border-zinc-600",
"dark:bg-zinc-900",
"dark:border-zinc-800",
"dark:data-[hover=true]:bg-zinc-900",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/customization/custom-variants.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const MyInput = extendVariants(Input, {
"focus-within:bg-zinc-100",
"data-[hover=true]:border-zinc-600",
"data-[hover=true]:bg-zinc-100",
"group-data-[focus=true]:border-zinc-600",
"group-data-[focus=true]/input:border-zinc-600",
// dark theme
"dark:bg-zinc-900",
"dark:border-zinc-800",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/select/stories/select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ const CustomStylesTemplate = ({color, variant, ...args}: SelectProps<User>) => {
<Select
className="max-w-xs"
classNames={{
label: "group-data-[filled=true]:-translate-y-5",
label: "group-data-[filled=true]/select:-translate-y-5",
trigger: "min-h-16",
listboxWrapper: "max-h-[400px]",
}}
Expand Down