Widget: match the chat bubble color to the rest of the widget
@sethr07 がすでに取り組んでいます。
2026年11月23日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- css, javascript, typescript
- 領域
- frontend
調査の方向性
public/widget.js の createStyles から始めてください。ここでは #cp-widget-bubble のルールがインディゴ #4f46e5 とその影 rgba(79,70,229,...) をハードコードしています。これらを BUBBLE_SIZE の近くに置いた名前付きの色定数に置き換え、その値を #2563eb にしてください。両方の影は同じ不透明度でこの定数から導出します。その後、tests/unit/ に widget-surface-hardening.test.ts を手本にしたテストを追加し、新しい値と古いインディゴが含まれないことを検証してください。テストが通り、pnpm test と pnpm build が成功し、テストページでフォーカスリングが見えれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Copied from DeadantCo/answerLoops#58 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/345 — originally opened by
@NathanTarberton 2026-10-08
Part of the chat widget work tracked in #333.
Problem
The round button that opens the chat widget is a hard-coded indigo (#4f46e5) with an indigo shadow, while everything inside the chat window uses the app's brand blue. A visitor sees two different colors for one product. The embed script is plain JavaScript injected into customer sites, so it cannot use the app's color tokens and carries its own copy of the color.
Scope
Change the default bubble color in public/widget.js so it matches the chat window.
- Background: from
#4f46e5to the app's brand blue,brand-600(#2563eb, defined inapp/globals.css). - Shadow: the resting shadow (
rgba(79,70,229,.4)) and the stronger hover shadow (rgba(79,70,229,.5)) are built from the same indigo. Rebuild both from the new blue at the same opacities, so no indigo is left anywhere in the script. - Keep the white icon. Check it still has enough contrast on the new blue.
- Keep the button's keyboard behavior: it must still show a visible focus ring when tabbed to. Confirm this by tabbing to it on a test page, and add a focus style if the browser default is not visible on the new color.
- Keep one named constant for the color near the top of the script, next to
BUBBLE_SIZE, so the workspace brand color from #348 can replace it in one place.
Not in this issue
Letting a workspace choose its own color (#348), the bubble's size, position or side (#344, #351, #352), the open and close behavior, and the colors inside the chat window.
Acceptance criteria
- The bubble background is
#2563eband matches the chat window's brand blue. - The resting and hover shadows use the same blue, and no
79,70,229or4f46e5remains inpublic/widget.js. - The icon contrast on the new background is at least 4.5:1, and the bubble still shows a visible focus ring from the keyboard.
- The color lives in one constant that #348 can later replace.
- Size, position, hover scale and open/close behavior are unchanged.
- Checked on a real embed in a test page at desktop width and at 375px.
- A test in
tests/unit/readspublic/widget.js(aswidget-surface-hardening.test.tsdoes) and asserts the new color and the absence of the old indigo values. -
pnpm testandpnpm buildpass.
Implementation starting points
public/widget.js(createStyles, the#cp-widget-bubblerules)app/globals.css(--color-brand-600)tests/unit/widget-surface-hardening.test.ts(example of testing the script's text)
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeadantCo/answerLoopsdev のほかの issue
-
Widget: make the chat window fit on small phones対応中かも @sethr07 が今日担当しました。 オープンenhancement frontend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DeadantCo/answerLoopsdev#67 · コメント 9 件 ·
-
Add 'select all' option to Slack channel picker in Settings対応中かも @sethr07 が今日担当しました。 オープンfrontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DeadantCo/answerLoopsdev#22 · コメント 5 件 ·
-
enhancement frontend help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
DeadantCo/answerLoopsdev#140 ·
-
backend enhancement frontend help wanted notifications
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
DeadantCo/answerLoopsdev#139 ·
DeadantCo/answerLoopsdev の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
lingdojo/kana-dojo#34545 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
blocklist addition
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
MetaMask/eth-phishing-detect#315455 ·
メンテナーはふだん 1 日以内に返信
-
area: telegram bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
griffinwork40/agent-afk#5275 ·
メンテナーはふだん 1 日以内に返信
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getopenscreen/openscreen#1667 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
erkamyaman/rust-anything#371 ·
メンテナーはふだん 1 日以内に返信