GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Custom themes drop text with escaped quotation marks · Issue #39293 · pingdotgg/t3code

[Bug]: Custom themes drop text with escaped quotation marks #39293

New issue
Copy link
New issue
Copy link
Closed
#39296
Closed
[Bug]: Custom themes drop text with escaped quotation marks#39293
#39296
Copy link
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.

Description

@StiensWout
StiensWout
opened on Nov 19, 2026
Issue body actions

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

packages/contracts or packages/shared

Steps to reproduce

  1. Open Settings → Appearance in light mode.
  2. Select Add theme.
  3. Paste this into Theme JSON: {"version": 1, "name": "Quoted Preview", "appearance": "light", "colors": {"canvas": "#ffffff", "accent": "#734ee4"}, "css": "[data-settings-page-scroll]::before { display: block; content: \"Theme preview: \\\"ready\\\"\"; }"}.
  4. Select Add theme to import it.
  5. Select Use Quoted Preview theme.

Expected behavior

The appearance page displays the custom text Theme preview: "ready".

Actual behavior

The theme installs, but the custom text is missing from the page.

theme custom text

failure

Impact

Major degradation or frequent failure. Anyone applying a custom theme that uses an escaped quotation mark in a CSS content string loses that text.

Version or commit

main at 9246c3235e. The cause is at packages/shared/src/themeCss.ts:38.

Environment

Linux x64 boat.dev default machine, a fresh checkout.

Logs or stack traces

The selected theme displays its custom text with quotation marks
Automated repro

Fails in 2 of 2 runs on main: apply the patch with git apply, then run the command.

diff --git a/scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts b/scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts
new file mode 100644
index 0000000000..8e26cf6a63
--- /dev/null
+++ b/scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts
@@ -0,0 +1,44 @@
+/// <reference lib="dom" />
+import { expect } from "e2e";
+
+import { test, WEB } from "./t3.ts";
+
+const CONTENT = String.raw`"Theme preview: \"ready\""`;
+
+test(
+  "A theme renders custom text containing quotation marks",
+  WEB,
+  async ({ t3, app, screen, browser }) => {
+    await t3.project("demo");
+    await t3.open("/settings/appearance");
+    await screen.getByRole("button", "Add theme", { exact: true }).tap();
+    const dialog = screen.getByRole("dialog", "Add a theme");
+    await dialog.getByRole("textbox", "Theme JSON").fill(
+      JSON.stringify({
+        version: 1,
+        name: "Quoted Preview",
+        appearance: "light",
+        colors: { canvas: "#ffffff", accent: "#734ee4" },
+        css: `[data-settings-page-scroll]::before { display: block; content: ${CONTENT}; }`,
+      }),
+    );
+    await dialog.getByRole("button", "Add theme", { exact: true }).tap();
+    await dialog.waitFor({ state: "hidden" });
+    await screen.getByRole("button", "Use Quoted Preview theme", { exact: true }).tap();
+
+    try {
+      await expect
+        .poll(
+          () =>
+            browser.evaluate(() => {
+              const settings = document.querySelector("[data-settings-page-scroll]");
+              return settings ? getComputedStyle(settings, "::before").content : "";
+            }),
+          { message: "The selected theme displays its custom text with quotation marks" },
+        )
+        .toBe(CONTENT);
+    } finally {
+      await app.screenshot("theme-custom-text");
+    }
+  },
+);
pnpm scenarios:prove scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts --base main

Workaround

No response

Activity

  1. github-actions
    added
    vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
    on Nov 19, 2026
  2. juliusmarminge
    closed this as completedin #39296on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.