-
Notifications
You must be signed in to change notification settings - Fork 129
fix: make copy buttons copy again #2379
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
Conversation
Deploying rivet-studio with
|
| Latest commit: |
3e59112
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://90e46b05.rivet-studio.pages.dev |
| Branch Preview URL: | https://04-24-fix-make-copy-buttons.rivet-studio.pages.dev |
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
3e59112 to
02ea955
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> Closes FRONT-684 ## Changes <!-- If there are frontend changes, please include screenshots. -->
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.
PR Summary
Fixed code copying functionality in MDX components by improving the selection and handling of code blocks in both grouped and non-grouped contexts.
- Added
data-code-groupattribute toCodeGroupandprecomponents for proper code block identification - Enhanced
CopyCodeTriggerto first check for active tab's code within groups before falling back to standalone code blocks - Improved file display styling by converting plain text to
Badgecomponent with icon - Optimized margins and spacing for better visual hierarchy in code groups
2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
Deploying rivet-hub with
|
| Latest commit: |
3e59112
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ce96ad87.rivet-hub-7jb.pages.dev |
| Branch Preview URL: | https://04-24-fix-make-copy-buttons.rivet-hub-7jb.pages.dev |
Graphite Automations"Test" took an action on this PR • (04/24/25)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |

Closes FRONT-684
Changes