Skip to content

Commit 7a782bc

Browse files
committed
fix(pages): restore proper icon sizes
1 parent 2e39c2f commit 7a782bc

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

pages/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- fix: restore proper icon sizes for the slug sync button and the slug-change info banner after the Geist icon standardization
6+
37
## 0.7.0
48

59
- feat: add request-scoped ancestor caching to avoid redundant DB queries when computing virtual fields for sibling pages

pages/src/components/client/SlugFieldClient.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,12 @@ export const SlugFieldClient = (clientProps: SlugFieldProps & TextFieldClientPro
174174
onMouseEnter={(_) => setShowSyncButtonTooltip(true)}
175175
onMouseLeave={(_) => setShowSyncButtonTooltip(false)}
176176
style={{
177+
alignItems: 'center',
177178
background: 'none',
178179
border: 'none',
179-
color: 'var(--theme-elevation-500)',
180180
cursor: 'pointer',
181+
display: 'flex',
181182
padding: 0,
182-
transform: 'scale(0.5)',
183-
transition: 'color 0.2s',
184183
}}
185184
type="button"
186185
>
@@ -252,11 +251,11 @@ export const SlugFieldClient = (clientProps: SlugFieldProps & TextFieldClientPro
252251
const InfoIcon = () => (
253252
<svg
254253
data-testid="geist-icon"
255-
height="16"
254+
height="20"
256255
strokeLinejoin="round"
257-
style={{ color: 'currentcolor' }}
258-
viewBox="0 0 16 16"
259-
width="16"
256+
style={{ color: 'var(--theme-elevation-800)', flexShrink: 0 }}
257+
viewBox="-4 -4 24 24"
258+
width="20"
260259
>
261260
<path
262261
clipRule="evenodd"

pages/src/icons/BreadcrumbsIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ export const BreadcrumbsIcon: React.FC<{
44
readonly ariaLabel?: string
55
readonly className?: string
66
readonly size?: number
7-
}> = ({ ariaLabel, className, size = 16 }) => {
7+
}> = ({ ariaLabel, className, size = 20 }) => {
88
return (
99
<svg
1010
aria-label={ariaLabel}
1111
className={className}
1212
data-testid="geist-icon"
1313
height={size}
1414
strokeLinejoin="round"
15-
style={{ color: 'currentcolor' }}
15+
style={{ color: 'var(--theme-elevation-800)' }}
1616
viewBox="0 0 16 16"
1717
width={size}
1818
>

pages/src/icons/HomeIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export const HomeIcon: React.FC<{
44
readonly ariaLabel?: string
55
readonly className?: string
66
readonly size?: number
7-
}> = ({ ariaLabel, className, size = 16 }) => {
7+
}> = ({ ariaLabel, className, size = 20 }) => {
88
return (
99
<svg
1010
aria-label={ariaLabel}
1111
className={className}
1212
data-testid="geist-icon"
1313
height={size}
1414
strokeLinejoin="round"
15-
style={{ color: 'currentcolor' }}
16-
viewBox="0 0 16 16"
15+
style={{ color: 'var(--theme-elevation-800)' }}
16+
viewBox="-2 -2 20 20"
1717
width={size}
1818
>
1919
<path

pages/src/icons/RefreshIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export const RefreshIcon: React.FC<{
44
readonly ariaLabel?: string
55
readonly className?: string
66
readonly size?: number
7-
}> = ({ ariaLabel, className, size = 16 }) => {
7+
}> = ({ ariaLabel, className, size = 20 }) => {
88
return (
99
<svg
1010
aria-label={ariaLabel}
1111
className={className}
1212
data-testid="geist-icon"
1313
height={size}
1414
strokeLinejoin="round"
15-
style={{ color: 'currentcolor' }}
16-
viewBox="0 0 16 16"
15+
style={{ color: 'var(--theme-elevation-800)' }}
16+
viewBox="-4 -4 24 24"
1717
width={size}
1818
>
1919
<path

0 commit comments

Comments
 (0)