New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(accordion): introduce styles.root
for Accordion
#5595
fix(accordion): introduce styles.root
for Accordion
#5595
Conversation
🦋 Changeset detectedLatest commit: 2e2b947 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui-storybook/GzB8Urp8YShYv3tHRWfHggB26YRM |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2e2b947:
|
Thank you @takethefake for your time creating this PR! I think there might be a way to fix this issue without a breaking change. What do you think about adding a new part With v2 in mind we could reuse Kindly let me know your thoughts! |
cf6561e
to
15a03cb
Compare
Hej @TimKolberger this sounds like a good approach to provide new functionality. We definitely need to make sure in v2 that we unify the usage of Adjusted the pr accordingly. |
styles.item
for AccordionItem
and move styles.container
to Accordion
styles.root
for Accordion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating the PR so fast, I added a few comments.
Then it looks good to go 🚀
packages/accordion/src/accordion.tsx
Outdated
@@ -58,6 +58,10 @@ export const Accordion = forwardRef<AccordionProps, "div">( | |||
[context, reduceMotion], | |||
) | |||
|
|||
const rootStyles: SystemStyleObject = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be inlined to the __css prop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TimKolberger adjusted it
15a03cb
to
1bd0d76
Compare
1bd0d76
to
48dc7ff
Compare
48dc7ff
to
2e2b947
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
closes #5593
📝 Description
Updated style config for
Accordion
This change introduces
styles.root
forAccordion
💣 Is this a breaking change (Yes/No):
No