Skip to content

Commit 00649e3

Browse files
committed
[fix](@svelteui/core): add missing fontFamily to components
1 parent 138a23d commit 00649e3

File tree

20 files changed

+26
-9
lines changed

20 files changed

+26
-9
lines changed

packages/svelteui-core/src/components/Accordion/AccordionItem/AccordionItem.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default createStyles(
6969
}
7070
},
7171
controlContent: {
72+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
7273
color: 'inherit',
7374
fontWeight: 400,
7475
flex: 1,

packages/svelteui-core/src/components/Alert/Alert.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface AlertStylesParams {
1111
export default createStyles((theme, { color, radius, variant }: AlertStylesParams, getRef) => {
1212
return {
1313
root: {
14+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
1415
position: 'relative',
1516
overflow: 'hidden',
1617
padding: `${theme.space.sm.value}px ${theme.space.md.value}px`,

packages/svelteui-core/src/components/AppShell/HorizontalSection/HorizontalSection.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default createStyles(
5252
5
5353
)}`
5454
},
55-
fontFamily: '$standard' || 'sans-serif',
55+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
5656
...position,
5757
top: position?.top || 'var(--svelteui-header-height)',
5858
zIndex,

packages/svelteui-core/src/components/AppShell/VerticalSection/VerticalSection.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default createStyles(
2323
...position,
2424
zIndex,
2525
height,
26-
fontFamily: '$standard' || 'sans-serif',
26+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
2727
maxHeight: height,
2828
position: fixed ? 'fixed' : 'static',
2929
boxSizing: 'border-box',

packages/svelteui-core/src/components/Badge/Badge.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export default createStyles(
7373
width: fullWidth ? '100%' : 'auto',
7474
textTransform: 'uppercase',
7575
borderRadius: theme.fn.radius(radius),
76+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
7677
fontWeight: 700,
7778
letterSpacing: 0.25,
7879
cursor: 'default',

packages/svelteui-core/src/components/Blockquote/Blockquote.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default createStyles((theme, { color }: BlockquoteStylesParams) => {
1010
darkMode: {
1111
color: theme.fn.themeColor('dark', 0)
1212
},
13+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
1314
fontSize: theme.fontSizes.lg.value,
1415
lineHeight: theme.lineHeights.md.value,
1516
color: theme.fn.themeColor('black'),

packages/svelteui-core/src/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const fontSizes = {
1616

1717
export default createStyles((theme, { color, size }: BreadcrumbItemStylesParams) => ({
1818
root: {
19-
position: 'relative'
19+
position: 'relative',
20+
fontFamily: theme.fonts.standard.value ?? 'sans-serif'
2021
},
2122
wrapper: {
2223
display: 'flex',

packages/svelteui-core/src/components/Button/Button.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default createStyles(
8989
typeof size === 'number'
9090
? `0px ${size}px`
9191
: sizes[compact ? `compact-${size}` : size].padding,
92-
fontFamily: '$standard',
92+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
9393
fontWeight: '$semibold',
9494
fontSize: `$${size}`,
9595
lineHeight: 1,

packages/svelteui-core/src/components/Button/UnstyledButton/UnstyledButton.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default createStyles((theme) => ({
1010
border: 0,
1111
padding: 0,
1212
appearance: 'none',
13+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
1314
fontSize: theme.fontSizes.md.value,
1415
backgroundColor: 'transparent',
1516
textAlign: 'left',

packages/svelteui-core/src/components/Chip/Chip.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default createStyles(
5858
border: '1px solid transparent',
5959
borderRadius: theme.fn.radius(radius),
6060
height: theme.fn.size({ size, sizes }),
61+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
6162
fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),
6263
lineHeight: `${theme.fn.size({ size, sizes }) - 2}px`,
6364
paddingLeft: theme.fn.size({ size, sizes: padding }),

0 commit comments

Comments
 (0)