Skip to content

Commit 303a628

Browse files
committed
adjusting button & input border radius and height to match
1 parent aa685f7 commit 303a628

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

components/dashboard/src/components/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
5252
className={classNames(
5353
"cursor-pointer my-auto",
5454
"text-sm font-medium whitespace-nowrap",
55-
"rounded-xl focus:outline-none focus:ring transition ease-in-out",
55+
"rounded-lg focus:outline-none focus:ring transition ease-in-out",
5656
spacing === "compact" ? ["px-1 py-1"] : null,
5757
spacing === "default" ? ["px-4 py-2"] : null,
5858
type === "primary"

components/dashboard/src/components/forms/TextInputField.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export const TextInput: FunctionComponent<TextInputProps> = memo(
9797
return (
9898
<input
9999
id={id}
100-
className={cn("w-full max-w-lg dark:text-[#A8A29E]", className)}
100+
// 5px top/bottom padding ensures height matches buttons (36px)
101+
className={cn("py-[5px] w-full max-w-lg rounded-lg dark:text-[#A8A29E]", className)}
101102
value={value}
102103
type={type}
103104
placeholder={placeholder}

components/dashboard/src/components/podkit/buttons/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { cva, VariantProps } from "class-variance-authority";
1010
import { cn } from "@podkit/lib/cn";
1111

1212
export const buttonVariants = cva(
13-
"inline-flex items-center justify-center whitespace-nowrap rounded-xl text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
13+
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
1414
{
1515
variants: {
1616
variant: {

components/dashboard/src/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
input[type="email"],
7070
input[type="url"],
7171
select {
72-
@apply block w-56 text-gray-600 dark:text-gray-400 dark:bg-gray-800 bg-white rounded-md border border-gray-300 dark:border-gray-500 focus:border-gray-400 dark:focus:border-gray-400 focus:ring-0;
72+
@apply block w-56 text-gray-600 dark:text-gray-400 dark:bg-gray-800 bg-white rounded-lg border border-gray-300 dark:border-gray-500 focus:border-gray-400 dark:focus:border-gray-400 focus:ring-0;
7373
}
7474
textarea::placeholder,
7575
input[type="text"]::placeholder,
@@ -102,7 +102,7 @@
102102

103103
/* Search */
104104
input[type="search"] {
105-
@apply border-0 dark:bg-gray-800 bg-gray-50 text-gray-600 dark:text-gray-400 rounded-md focus:border-gray-400 dark:focus:border-gray-400 focus:outline-none focus:ring ring-0 focus:ring-blue-400 dark:focus:ring-blue-500 transition ease-in-out;
105+
@apply border-0 dark:bg-gray-800 bg-gray-50 text-gray-600 dark:text-gray-400 rounded-lg focus:border-gray-400 dark:focus:border-gray-400 focus:outline-none focus:ring ring-0 focus:ring-blue-400 dark:focus:ring-blue-500 transition ease-in-out;
106106
}
107107
input[type="checkbox"] {
108108
@apply disabled:opacity-50;

0 commit comments

Comments
 (0)