MystenLabs/sui

Fix CodeBlocks Dark mode in JSON-RPC References page.

Gagan20-vis opened this issue · 0 comments

Description

On the JSON-RPC page, the CodeBlocks are rendered in light mode when the page is refreshed while in dark mode. However, this issue does not occur in reverse—refreshing the page in light mode does not switch the CodeBlocks to dark mode.

Steps to Reproduce

  1. Switch to dark mode.
  2. Refresh the page while in dark mode.
  3. Observe that the CodeBlocks appear in light mode, even though the rest of the page remains in dark mode.

Expected Behavior

CodeBlocks should retain the current theme (dark mode or light mode) after a page refresh.

Actual Behavior

CodeBlocks switch to light mode upon refreshing the page in dark mode.

Screenshots

Screenshot 2024-12-16 at 9 59 36 PM