added new combined buttons on all pages (#4328)

Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
Peer Richelsenandsean-brydon authored and GitHub committed 2022-09-09 10:53:02 +00:00
1 parent b0de653166
commit 83f0ba7ba4
12 files changed
+197 -216

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
// different styles depending on size
size === "base" && "h-9 px-4 py-2.5 ",
size === "lg" && "h-[36px] px-4 py-2.5 ",
size === "icon" && "flex justify-center h-[36px] w-[36px] ",
size === "icon" && "flex justify-center min-h-[36px] min-w-[36px] ",
combined ? "" : "rounded-md",
// different styles depending on color
// set not-allowed cursor if disabled
+4 -4
View File
@@ -21,7 +21,7 @@ const Switch = (
<PrimitiveSwitch.Root
className={classNames(
props.checked ? "bg-gray-900" : "bg-gray-200 hover:bg-gray-300",
"focus:ring-brand-800 h-6 w-10 rounded-full shadow-none",
"focus:ring-brand-800 h-5 w-[34px] rounded-full shadow-none",
props.className
)}
{...primitiveProps}>
@@ -30,9 +30,9 @@ const Switch = (
// Since we dont support global dark mode - we have to style dark mode components specifically on the instance for now
// TODO: Remove once we support global dark mode
className={classNames(
"block h-[18px] w-[18px] rounded-full bg-white",
"translate-x-[4px] transition delay-100 will-change-transform",
"[&[data-state='checked']]:translate-x-[18px]",
"block h-[14px] w-[14px] rounded-full bg-white",
"translate-x-[4px] transition will-change-transform",
"[&[data-state='checked']]:translate-x-[17px]",
props.checked && "shadow-inner",
props.thumbProps?.className
)}
+1 -1
View File
@@ -28,7 +28,7 @@ export function Tooltip({
<TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>
<TooltipPrimitive.Content
className={classNames(
side === "top" && "-mt-7 -ml-4",
side === "top" && "-mt-7",
side === "right" && "ml-2",
"relative z-40 rounded-md bg-gray-900 px-2 py-1 text-xs font-semibold text-white shadow-lg"
)}
@@ -37,7 +37,7 @@ export const BooleanToggleGroup = function BooleanToggleGroup({
<ToggleGroupPrimitive
value={yesNoValue}
type="single"
className="rounded-sm"
className="space-x-2 rounded-sm"
onValueChange={(yesNoValue: "yes" | "no") => {
setYesNoValue(yesNoValue);
onValueChange(boolean(yesNoValue));
@@ -73,7 +73,7 @@ export const BooleanToggleGroupField = function BooleanToggleGroupField(
<div className={classNames(containerClassName)}>
<div className={className}>
{!!label && (
<Label htmlFor={id} {...labelProps} className={classNames(props.error && "text-red-900")}>
<Label htmlFor={id} {...labelProps} className={classNames(props.error && "text-red-900", "mt-4")}>
{label}
</Label>
)}