Skip to content

Conversation

@ronronscelestes
Copy link
Contributor

What

  • Fixed mode chosen not memorized
  • Refacto Theme component used in preview.js
  • Added window.matchMedia to test-bundler.js ➡️
  • Needed to use import { useDarkMode } from 'storybook-dark-mode' in Theme component

How to test

  • Launch Storybook
  • Change mode
  • Switch to a different story, reload the page
  • It should memorize your mode chosen
  • Shouldn't break dark mode e2e tests

@vercel
Copy link

vercel bot commented Mar 21, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

design-system – ./

🔍 Inspect: https://vercel.com/strapijs/design-system/77MeEcKLbWH3b6p45TyZJ3bbL7wg
✅ Preview: https://design-system-git-dark-mode-memorize-mode-strapijs.vercel.app

design-system-website – ./website

🔍 Inspect: https://vercel.com/strapijs/design-system-website/41LKbaKjQBUcoqv6ZEYSoQ2VZPBe
✅ Preview: https://design-system-website-git-dark-mode-memorize-mode-strapijs.vercel.app

@HichamELBSI HichamELBSI self-assigned this Mar 23, 2022
@HichamELBSI HichamELBSI added the pr: chore This PR contains chore tasks (cleanups, configs, tooling...) label Mar 23, 2022
@HichamELBSI HichamELBSI added this to the 1.1.0 milestone Mar 23, 2022
Copy link
Collaborator

@HichamELBSI HichamELBSI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ronronscelestes ronronscelestes merged commit d796d7c into main Mar 23, 2022
@ronronscelestes ronronscelestes deleted the dark-mode/memorize-mode branch March 23, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: chore This PR contains chore tasks (cleanups, configs, tooling...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants