Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client/hud/layers/ChatModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class ChatModal extends LitElement {
${
this.showAll
? html`<input
class="px-2 py-1.5 rounded-md bg-zinc-800 ring-1 ring-white/10 text-sm outline-none focus:ring-white/30"
class="px-2 py-1.5 rounded-md bg-zinc-800 text-white ring-1 ring-white/10 text-sm outline-none focus:ring-white/30"
type="text"
placeholder=${translateText("chat.search_phrases")}
.value=${this.phraseSearch}
Expand Down
8 changes: 8 additions & 0 deletions tests/client/ChatModal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@ describe("ChatModal", () => {
expect(sectionTitles("Recent")).toEqual(["GG!"]);
});

it("uses light text in the dark phrase search field", async () => {
allPhrasesSwitch().click();
await modal.updateComplete;

const search = modal.querySelector("input");
expect(search?.classList.contains("text-white")).toBe(true);
});

it("searches all phrases by their text once all phrases are on", async () => {
expect(modal.querySelector("input")).toBeNull();
chip("GG!").click();
Expand Down
Loading