question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storysource: clicking on stories does not update what is highlighted

See original GitHub issue

Describe the bug When you click on a story in the sidebar, Storysource does not update the code area that is highlighted.

To Reproduce Steps to reproduce the behavior:

  1. Go to WithTooltip
  2. Click on the stories in the sidebar
  3. Observe that the code highlighted in Storysource does not change

Expected behavior I expect the highlighted code to change.

Screenshots Here’s a gif of this behavior in the Button component. https://cl.ly/335848ffb52a

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TerrenceLJonescommented, May 17, 2019

I think this issue is related to https://github.com/storybooks/storybook/issues/6136.

After chaining my stories together…the highlighting worked as expected.

1reaction
martinmcwhortercommented, Mar 25, 2019

I am seeing a similar possibly related issue with Storysource where the selected story does not get highlighted.

I am using “@storybook/angular”: “^5.0.5” and “@storybook/addon-storysource”: “^5.0.5”

My .storybook/webpack.config.js is

const path = require('path');

module.exports = function({ config }) {
  config.module.rules.push({
    test: /\.stories\.ts?$/,
    loaders: [
      {
        loader: require.resolve('@storybook/addon-storysource/loader'),
        options: {
          parser: 'typescript',
        },
      },
    ],
    enforce: 'pre',
    include: [path.resolve(__dirname, '../src')],
  });

  return config;
};

The source shows up, there is just no highlight of the selected story. The source code is black-text on white-background which is different from all screenshots of this feature that I have seen. Could this be theming to styling issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source - Storybook - JS.ORG
Storybook's Source Doc Block displays the story's source code. It supports syntax highlighting for most languages (e.g., javascript , jsx , json ,...
Read more >
Top 9 Fixes for Instagram Story Highlights Not Loading Issue
Are Instagram highlights not appearing for you? Do you see grey stories in your archive section? Find out how to fix Instagram highlights...
Read more >
Final Cut Pro X Flashcards | Chegg.com
Study Final Cut Pro X flashcards. Create flashcards for FREE and quiz yourself with an interactive flipper.
Read more >
[Updated] Instagram 'Add Yours' Chain Story sticker not ...
Update 20 (December 11). 04:20 pm (IST): While many users still can't use the Add Yours sticker, a recent report has highlighted ......
Read more >
Igo part 1 google drive password - Seba Online
609 x64 admin January 30, 2022 No Comments Description GameMaker Studio ... Base the design on the field of the scholarship none Welcome...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found