Repository navigation
fix: accordion expand icon now changes to × on toggle - #2282
Conversation
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
There was a problem hiding this comment.
Pull request overview
This PR fixes a visual bug in the accordion component where the expand/collapse icon was rotating incorrectly. The issue was caused by the rotate-45 class being applied to the parent container instead of just the icon itself.
Changes:
- Removed
rotate-45class from the icon container div to prevent the entire button from rotating - Added
select-noneutility class to the icon span to prevent text selection during clicks - Updated submodule references across multiple include files
Reviewed changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| components/Accordion.tsx | Fixed icon rotation by removing rotate-45 from parent container and added select-none to icon span |
| _includes/draft-02 | Updated submodule commit reference |
| _includes/draft-01 | Updated submodule commit reference |
| _includes/draft-00 | Updated submodule commit reference |
| _includes/dot-github | Updated submodule commit reference |
| _includes/community | Updated submodule commit reference |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
2 similar comments
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
What kind of change does this PR introduce?Bug fix DescriptionWhen clicking the Related issueFixes #2278 Checklist
|
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2282 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 30 30
Lines 633 672 +39
Branches 196 211 +15
=========================================
+ Hits 633 672 +39 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description, completed checklist items Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
|
Hi @Tushar8466! Thanks a lot for your contribution! I noticed that the following required information is missing or incomplete: kind of change description Please update the PR description to include this information. You can find placeholders in the PR template for these items. Thanks a lot! |
vtushar06
left a comment
There was a problem hiding this comment.
Thanks @Tushar8466, LGTM🚀,
@Utkarsh-123github PR is ready to merge from my side.
Utkarsh-123github
left a comment
There was a problem hiding this comment.
LGTM🚀
Thanks @Tushar8466 for contribution and @vtushar06 for review.
4bd72bb
into
json-schema-org:main
|
Congratulations, @Tushar8466 for your first pull request merge in this repository! 🎉🎉. Thanks for your contribution to JSON Schema! |
What kind of change does this PR introduce?
Bug fix
Description
Fixes #2278
When clicking the
+icon to expand an accordion card, the icon was notupdating to reflect the expanded state. This was caused by
rotate-45being applied on the parent div instead of the icon span.
Changes Made
rotate-45from the parent icon container divinline-blockandtransition-transform duration-200to the spanselect-noneto prevent text selection on clickChecklist