From 761b5c1811d71d56b080b7995fef151370388826 Mon Sep 17 00:00:00 2001 From: ErnestZhao <223518102+Siyuan-Zhao770707@users.noreply.github.com> Date: Mon, 21 Sep 2026 12:19:37 +0800 Subject: [PATCH 1/2] fix(dsh): style the shadow row's reset arrow like the blur row's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `.bc-dim-reset` existed only in the page markup and in the click handler — the sheet carried no rule for it at all, so the background-shadow row rendered a raw user-agent button next to the styled pill controls while the identical blur row below it looked right. Group both selectors onto one rule so the two cannot drift apart again, and cover it with a test that reads the class name out of the markup, finds a rule for exactly that class in the injected sheet, and asserts the two arrows carry the same declarations. A new control that ships unstyled now fails the suite instead of reaching users. --- integrations/deepseek-harness/console.js | 7 ++- .../deepseek-harness/test/console.test.mjs | 52 +++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/integrations/deepseek-harness/console.js b/integrations/deepseek-harness/console.js index 92b9ea0..4e7bf9c 100644 --- a/integrations/deepseek-harness/console.js +++ b/integrations/deepseek-harness/console.js @@ -42,8 +42,11 @@ #beauticode-console-page .bc-blur-slider::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:var(--dsw-alias-border-l3)} #beauticode-console-page .bc-blur-slider::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:.5px solid var(--dsw-alias-border-l4);border-radius:50%;background:var(--dsw-alias-bg-layer-1);box-shadow:var(--dsw-shadow-lv1);cursor:pointer} #beauticode-console-page .bc-blur-value{min-width:2.6em;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px;font-variant-numeric:tabular-nums;text-align:right} -#beauticode-console-page .bc-blur-reset{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:0 0;color:var(--dsw-alias-label-tertiary)} -#beauticode-console-page .bc-blur-reset:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)} +/* Both reset buttons share one appearance. bc-dim-reset used to be missing from + this sheet entirely, so the shadow row rendered a raw UA button next to the + styled blur row; keep the two selectors together so they cannot drift again. */ +#beauticode-console-page .bc-dim-reset,#beauticode-console-page .bc-blur-reset{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:0 0;color:var(--dsw-alias-label-tertiary)} +#beauticode-console-page .bc-dim-reset:hover,#beauticode-console-page .bc-blur-reset:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)} #beauticode-console-page .bc-dim-slider{-webkit-appearance:none;appearance:none;width:120px;height:4px;margin:0;padding:0;border-radius:999px;background:var(--dsw-alias-border-l3);cursor:pointer} #beauticode-console-page .bc-dim-slider::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:var(--dsw-alias-border-l3)} #beauticode-console-page .bc-dim-slider::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:.5px solid var(--dsw-alias-border-l4);border-radius:50%;background:var(--dsw-alias-bg-layer-1);box-shadow:var(--dsw-shadow-lv1);cursor:pointer} diff --git a/integrations/deepseek-harness/test/console.test.mjs b/integrations/deepseek-harness/test/console.test.mjs index 8c2ef37..522881e 100644 --- a/integrations/deepseek-harness/test/console.test.mjs +++ b/integrations/deepseek-harness/test/console.test.mjs @@ -590,6 +590,58 @@ test("the reset arrow writes the default value instead of an auto state", async assert.equal(page.querySelector(".bc-dim-slider")?.value, "0"); }); +/** + * The reset arrows are