Skip to content

Commit

Permalink
Fix site hub buttons to use 40px default button size
Browse files Browse the repository at this point in the history
  • Loading branch information
hbhalodia committed Sep 13, 2024
1 parent 0a5a3c4 commit fda3738
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ const SiteHub = memo(
) }
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
ref={ ref }
href={ dashboardLink }
label={ __( 'Go to the Dashboard' ) }
Expand All @@ -80,8 +79,7 @@ const SiteHub = memo(
<HStack>
<div className="edit-site-site-hub__title">
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
variant="link"
href={ homeUrl }
target="_blank"
Expand All @@ -101,8 +99,7 @@ const SiteHub = memo(
className="edit-site-site-hub__actions"
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
className="edit-site-site-hub_toggle-command-center"
icon={ search }
onClick={ () => openCommandCenter() }
Expand Down Expand Up @@ -149,8 +146,7 @@ export const SiteHubMobile = memo(
) }
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
ref={ ref }
label={ __( 'Go to Site Editor' ) }
className="edit-site-layout__view-mode-toggle"
Expand All @@ -170,8 +166,7 @@ export const SiteHubMobile = memo(
<HStack>
<div className="edit-site-site-hub__title">
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
variant="link"
href={ homeUrl }
target="_blank"
Expand All @@ -186,8 +181,7 @@ export const SiteHubMobile = memo(
className="edit-site-site-hub__actions"
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
className="edit-site-site-hub_toggle-command-center"
icon={ search }
onClick={ () => openCommandCenter() }
Expand Down

0 comments on commit fda3738

Please sign in to comment.