Skip to content

Commit

Permalink
Merge branch 'main' into bs/experimental-tooltip-with-popover
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup authored Aug 11, 2023
2 parents c64323f + f487a8d commit 8b6da3e
Show file tree
Hide file tree
Showing 11 changed files with 813 additions and 240 deletions.
7 changes: 7 additions & 0 deletions .changeset/clever-parents-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@primer/react': patch
---

Update @react-aria/ssr dependency to ^3.5.0 to address server-side rendering mismatch when using React StrictMode

<!-- Changed components: FormControl -->
7 changes: 7 additions & 0 deletions .changeset/thin-laws-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@primer/react": patch
---

Expose `useSlots` from `drafts/hooks`

<!-- Changed components: _none_ -->
4 changes: 3 additions & 1 deletion docs/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ import {BaseStyles, Box, Heading} from '@primer/react'
export default () => (
<BaseStyles>
<Box m={4}>
<Heading sx={{mb: 2}}>Hello, world!</Heading>
<Heading as="h2" sx={{mb: 2}}>
Hello, world!
</Heading>
<p>This will get Primer text styles.</p>
</Box>
</BaseStyles>
Expand Down
187 changes: 146 additions & 41 deletions docs/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"npm": ">=7"
},
"dependencies": {
"@primer/gatsby-theme-doctocat": "^4.6.1",
"@primer/gatsby-theme-doctocat": "^4.6.3",
"@primer/octicons-react": "^17.7.0",
"@primer/primitives": "4.1.0",
"@styled-system/prop-types": "^5.1.0",
Expand Down
4 changes: 3 additions & 1 deletion docs/src/@primer/gatsby-theme-doctocat/components/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export default function Hero() {
<ThemeProvider colorMode="night" nightScheme="dark_dimmed">
<Box bg="canvas.default" py={6}>
<Container>
<Heading sx={{color: 'accent.fg', fontSize: 7, lineHeight: 'condensed', pb: 3, m: 0}}>Primer React</Heading>
<Heading as="h2" sx={{color: 'accent.fg', fontSize: 7, lineHeight: 'condensed', pb: 3, m: 0}}>
Primer React
</Heading>
<Text as="p" fontFamily="mono" mt={0} mb={2} color="fg.default" fontSize={2}>
v{version}
</Text>
Expand Down
Loading

0 comments on commit 8b6da3e

Please sign in to comment.