Skip to content

Commit

Permalink
fix: nav-link line height
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 25, 2023
1 parent 0a14812 commit 537804b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/shy-rockets-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@saas-ui/theme': patch
'@saas-ui/react': patch
---

Fixed NavLink line height
1 change: 1 addition & 0 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@chakra-ui/system": "^2.6.1",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fontsource-variable/inter": "^5.0.15",
"@fontsource/inter": "^4.5.15",
"@mapbox/rehype-prism": "^0.8.0",
"@mdx-js/loader": "^2.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ function ReactLiveBlock({
}, [frameRef, inline])

const frame = inline ? (
<LiveCodePreview fontSize="sm" sx={sx} minH="200px" />
<LiveCodePreview fontSize="md" sx={sx} minH="200px" />
) : (
<Frame ref={(ref) => setFrameRef(ref)} width="100%" height="100%">
<FrameProvider>
<LiveCodePreview fontSize="sm" sx={sx} minHeight="$100vh" />
<LiveCodePreview fontSize="md" sx={sx} minHeight="$100vh" />
</FrameProvider>
</Frame>
)
Expand Down
4 changes: 1 addition & 3 deletions apps/website/src/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { extendTheme, ThemeTypings } from '@chakra-ui/react'

import { theme as baseTheme } from '@saas-ui-pro/react'

import '@fontsource/inter/variable.css'
import '@fontsource-variable/inter'

import { mode, transparentize, blacken } from '@chakra-ui/theme-tools'

Expand Down Expand Up @@ -78,8 +78,6 @@ const theme = extendTheme(
fontSizes,
fonts: {
...baseTheme.fonts,
body: 'InterVariable, sans-serif',
heading: 'InterVariable, sans-serif',
},
sizes: {
...baseTheme.sizes,
Expand Down
1 change: 1 addition & 0 deletions packages/saas-ui-theme/src/base/components/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const navbarTheme = defineMultiStyleConfig({
borderRadius: 'md',
transitionProperty: 'common',
transitionDuration: 'normal',
lineHeight: 1,
px: 3,
h: 8,
_focusVisible: {
Expand Down

0 comments on commit 537804b

Please sign in to comment.