Skip to content

Commit 798a054

Browse files
committed
fix: update icon button sizing to match design
1 parent 3acae2b commit 798a054

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

site/src/components/Button/Button.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import { cn } from "utils/cn";
1010
export const buttonVariants = cva(
1111
`inline-flex items-center justify-center gap-1 whitespace-nowrap
1212
border-solid rounded-md transition-colors min-w-20
13-
text-sm font-semibold font-medium cursor-pointer no-underline
13+
text-sm font-semibold font-medium cursor-pointer no-underline
1414
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-content-link
1515
disabled:pointer-events-none disabled:text-content-disabled
16-
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:p-[2px]`,
16+
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:p-0.5`,
1717
{
1818
variants: {
1919
variant: {
@@ -30,6 +30,7 @@ export const buttonVariants = cva(
3030
size: {
3131
lg: "h-10 px-3 py-2 [&_svg]:size-icon-lg",
3232
sm: "h-[30px] px-2 py-1.5 text-xs [&_svg]:size-icon-sm",
33+
icon: "h-[30px] min-w-[30px] px-1 py-1.5 [&_svg]:size-icon-sm",
3334
},
3435
},
3536
defaultVariants: {

site/src/pages/DeploymentSettingsPage/IdpOrgSyncPage/IdpOrgSyncPageView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ const OrganizationRow: FC<OrganizationRowProps> = ({
349349
<TableCell>
350350
<Button
351351
variant="outline"
352-
className="w-8 h-8 min-w-10 text-content-primary"
352+
size="icon"
353+
className="text-content-primary"
353354
aria-label="delete"
354355
onClick={() => onDelete(idpOrg)}
355356
>

site/src/pages/ManagementSettingsPage/IdpSyncPage/IdpGroupSyncForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ const GroupRow: FC<GroupRowProps> = ({ idpGroup, coderGroup, onDelete }) => {
290290
<TableCell>
291291
<Button
292292
variant="outline"
293-
className="w-8 h-8 min-w-10 text-content-primary"
293+
size="icon"
294+
className="text-content-primary"
294295
aria-label="delete"
295296
onClick={() => onDelete(idpGroup)}
296297
>

site/src/pages/ManagementSettingsPage/IdpSyncPage/IdpRoleSyncForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ const RoleRow: FC<RoleRowProps> = ({ idpRole, coderRoles, onDelete }) => {
211211
<TableCell>
212212
<Button
213213
variant="outline"
214-
className="w-8 h-8 min-w-10 text-content-primary"
214+
size="icon"
215+
className="text-content-primary"
215216
aria-label="delete"
216217
onClick={() => onDelete(idpRole)}
217218
>

0 commit comments

Comments
 (0)