-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: themeRelated to the default theme componentsRelated to the default theme components
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
codeblock on RTL locale puts copy button on the left while code is also on the left.
This is my current hack to fix this
/*RTL hack! the copy botton of CodeBlock is set incorrectly, thiis is how to fix it*/
/*for dev*/
.buttonGroup_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Content-styles-module {
left: 0.5rem !important;
right: unset !important;
}
/*for prod*/
.buttonGroup__atx {
left: 0.5rem !important;
right: unset !important;
}Reproducible demo
No response
Steps to reproduce
some RTL local with code block
Expected behavior
copy button shold stay on the right
Actual behavior
copy button is on the left
Your environment
No response
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: themeRelated to the default theme componentsRelated to the default theme components