styling update

This commit is contained in:
bflatastic committed 2025-06-20 11:51:06 +07:00
1 parent b003ccef27
commit f99c86b173
2 files changed
+8 -2

No files matched your search

@@ -185,7 +185,8 @@ export function PricingModal({
onTabChange={setBillingType}
className="w-fit"
tabClassName="w-24 text-md"
selectedTabClassName="bg-white text-black"
indicatorClassName="bg-white"
selectedTabClassName="text-black"
/>
<span className="bg-primary text-white px-3 py-0.5 rounded-full text-sm font-medium -top-3 -left-6 absolute pointer-events-none">
-{pricingConfig.yearlyDiscount}%
@@ -16,6 +16,7 @@ interface TabSelectorProps {
disabled?: boolean;
disabledMessage?: string;
tabClassName?: string;
indicatorClassName?: string;
selectedTabClassName?: string;
}
@@ -27,6 +28,7 @@ export const TabSelector: React.FC<TabSelectorProps> = ({
disabled,
disabledMessage,
tabClassName,
indicatorClassName,
selectedTabClassName,
}) => {
// Find the index of the active tab
@@ -67,7 +69,10 @@ export const TabSelector: React.FC<TabSelectorProps> = ({
<TabList className="glass glass-no-hover relative inline-flex min-w-fit overflow-x-auto rounded-lg p-0.5 py-1 !shadow-none">
{/* Animated indicator */}
<div
className="absolute top-1 z-10 h-[calc(100%-8px)] rounded-md bg-primary/30 transition-all duration-200 ease-in-out"
className={twMerge(
"absolute top-1 z-10 h-[calc(100%-8px)] rounded-md bg-primary/30 transition-all duration-200 ease-in-out",
indicatorClassName
)}
style={{
left: indicatorStyle.left,
width: indicatorStyle.width,