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.

[docs] Setting custom color in playground breaks docs

See original GitHub issue

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When setting docs color at https://mui.com/customization/color/#playground the docs break

Application error: a client-side exception has occurred (see the browser console for more information).

The colors I put in were #304d6d for primary and #5cc2a7 for secondary.

Expected behavior 🤔

Docs work correctly with website colors set.

Steps to reproduce 🕹

Steps:

  1. Go to https://mui.com/customization/color/#playground
  2. Set colors
  3. Save colors
  4. Try to navigate (should break immediately after setting colors)

Context 🔦

No response

Your environment 🌎

Chrome - 96.0.4664.110

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
bsell93commented, Dec 22, 2021

I forgot to add this. @fitzerman this will help you. I found a way to unset it.

The best way: cookieStore.delete('paletteColors') run that in the browser console.

Alternatively you can clear all browser data (not ideal) in chrome at: chrome://settings/clearBrowserData

Both worked for me in two separate instances.

1reaction
konekoyacommented, Dec 23, 2021

I’m experiencing this too. I just found a temp fix – by removing a cookie named paletteColors from your browser… This cookie will cause crashes when you visit other Mui docs pages

Read more comments on GitHub >

github_iconTop Results From Across the Web

[docs] Setting custom color in playground breaks docs #30343
The colors I put in were #304d6d for primary and #5cc2a7 for secondary. Expected behavior. Docs work correctly with website colors set.
Read more >
Change page settings on Google Docs
At the top of the dialogue window, select Pages. Go to the setting that you want to change: Orientation; Paper size; Margins; Page...
Read more >
Use Custom Colors in Google Projects! (Docs, Slides, Sheets ...
Do you ever get frustrated trying to find the exact color for your fonts, background, or other objects in your Google projects?
Read more >
Customizing Colors - Tailwind CSS
Using custom colors. If you'd like to completely replace the default color palette with your own custom colors, add your colors directly under...
Read more >
box-sizing - CSS: Cascading Style Sheets - MDN Web Docs
If the element has any border or padding, this is then added to the width and height to arrive at the size of...
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