-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 issue preventing copying text out of theme storybook documentation #24135
Fix issue preventing copying text out of theme storybook documentation #24135
Conversation
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 9bc1db9:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 50b08528ea6ed19e13f002276fb880271771e425 (build) |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1264 | 1201 | 5000 | |
Button | mount | 813 | 798 | 5000 | |
FluentProvider | mount | 1495 | 1417 | 5000 | |
FluentProviderWithTheme | mount | 623 | 619 | 10 | |
FluentProviderWithTheme | virtual-rerender | 521 | 515 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 545 | 559 | 10 | |
MakeStyles | mount | 1673 | 1737 | 50000 | |
SpinButton | mount | 2522 | 2415 | 5000 |
@@ -0,0 +1,7 @@ | |||
{ | |||
"type": "none", | |||
"comment": "Fix issue preventing copying text out of theme storybook documentation", |
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.
"comment": "Fix issue preventing copying text out of theme storybook documentation", | |
"comment": "fix: Fix issue preventing copying text out of theme storybook documentation.", |
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.
Ok, I fix fixed the description 👍
Current Behavior
It is not possible to copy text out of theme documentation on these pages:
The root cause is a bug in storybook:
New Behavior
A workaround for the storybook bug is to turn off the "Show code" buttons for these stories:
In this case, there is nothing interesting in the code (it just shows a wrapper component like
<Colors />
), so there's no harm in removing it for the theme documentation. In fact, for that reason it's probably clearer to not have the "Show code" button, so this change should remain even after the underlying storybook issue is fixed.Related Issue(s)