Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Dark text on dark background for broken links in storybook #34231

Closed
jasongornall opened this issue Apr 20, 2022 · 3 comments
Closed

Dark text on dark background for broken links in storybook #34231

jasongornall opened this issue Apr 20, 2022 · 3 comments
Labels
frontend-platform Issues related to our frontend platform, owned collectively by our frontend crew.

Comments

@jasongornall
Copy link
Contributor

  • Sourcegraph version:

https://storybook.sgdev.org/?path=/story/wildcard-feedbackprompt--feedback-prompt-exampless

  • Platform information:
    Web / Chrome / Desktop / PC

Steps to reproduce:

  1. Click the link in dark mode and observe the black text on the dark background

Expected behavior:

The copy should be white

Actual behavior:

The copy is dark

image

If would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are not SLAs on issues like there are for support requests).

@jasongornall jasongornall added good first issue Good for newcomers frontend-platform Issues related to our frontend platform, owned collectively by our frontend crew. labels Apr 20, 2022
@jasongornall jasongornall removed the good first issue Good for newcomers label Apr 22, 2022
@jasongornall
Copy link
Contributor Author

jasongornall commented Apr 22, 2022

I dug into this issue as my first attempt at changing the codebase.

It looks like this view is entirely generated inside of storybook

All the other views work properly because of how the theme are imported directly from BrandedStory But because this isn't a react component it isn't importing it on the fly when the context changes.

This must be a problem for other apps right? A brief exploration of other storybooks yielded yes and the new version has a hardcoded background

voila! I say Let's just upgrade storybook and the problem is solved.

After upgrade I see the new storybook broken link looks great!
image

A quick VQA later results in some nasty react router crashes.
image

I then learn that the new version of storybook is NOT compatible with react router 5!!

Investigating upgrading react router they actively advise you to wait and not upgrade. until they can make it backwards compatible.

TLDR. new storybook fixes this and it needs react router 6 to work and react router 6 can't be upgraded yet (or shouldn't?).

@umpox
Copy link
Contributor

umpox commented Apr 25, 2022

@jasongornall

I got an email from the React Router team a couple of weeks ago saying that the migration was ready, with a plan on how to do it. I've emailed back to clarify what the actual status is, as the package has definitely been released but we should avoid doing so if it's not actually stable yet.

I did a quick PR here to enable https://github.com/sourcegraph/sourcegraph/pull/33835, and created an issue to migrate: https://github.com/sourcegraph/sourcegraph/issues/33834

@valerybugakov
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frontend-platform Issues related to our frontend platform, owned collectively by our frontend crew.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants