Skip to content

Commit

Permalink
feat: add css reset scope (#7464)
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Mar 19, 2023
1 parent b757423 commit 0f8a500
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 102 deletions.
22 changes: 22 additions & 0 deletions .changeset/breezy-deers-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"@chakra-ui/css-reset": minor
"@chakra-ui/provider": minor
"@chakra-ui/theme": minor
---

Add support for scoping the css reset to specific selector.

To use this feature, pass the `resetScope` prop to the `ChakraProvider` or
`ChakraBaseProvider` component.

```jsx live=false
import { ChakraProvider } from "@chakra-ui/react"

function App() {
return (
<ChakraProvider resetScope=".ck-reset">
<App />
</ChakraProvider>
)
}
```

1 comment on commit 0f8a500

@vercel
Copy link

@vercel vercel bot commented on 0f8a500 Mar 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.