From 94f94d87f5af5f65d9abf9896f4f8e5b3c418e4e Mon Sep 17 00:00:00 2001 From: Ashot Vardanyan Date: Thu, 26 Feb 2026 13:22:22 +0400 Subject: [PATCH] fix: Adjust border-radius for first and last items in vertical ToggleGroup. --- packages/ui/src/components/toggle-group/ToggleGroupItem.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/toggle-group/ToggleGroupItem.astro b/packages/ui/src/components/toggle-group/ToggleGroupItem.astro index d38da43..3c83541 100644 --- a/packages/ui/src/components/toggle-group/ToggleGroupItem.astro +++ b/packages/ui/src/components/toggle-group/ToggleGroupItem.astro @@ -58,8 +58,8 @@ const { // Connected items styling (rounded-none, first/last get border-radius) "rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg", // Vertical orientation border-radius - "group-data-[orientation=vertical]/toggle-group:first:rounded-t-lg group-data-[orientation=vertical]/toggle-group:first:rounded-l-none", - "group-data-[orientation=vertical]/toggle-group:last:rounded-b-lg group-data-[orientation=vertical]/toggle-group:last:rounded-r-none", + "group-data-[orientation=vertical]/toggle-group:first:rounded-t-lg group-data-[orientation=vertical]/toggle-group:first:rounded-bl-none", + "group-data-[orientation=vertical]/toggle-group:last:rounded-b-lg group-data-[orientation=vertical]/toggle-group:last:rounded-tr-none", // Outline variant border handling (horizontal) "group-data-[variant=outline]/toggle-group:border-l-0 group-data-[variant=outline]/toggle-group:first:border-l", // Outline variant border handling (vertical)