Fix toolbar runtime toggle refresh

This commit is contained in:
murashit 2026-05-29 10:50:39 +09:00
parent d80d9789e8
commit cf7b717517
2 changed files with 12 additions and 1 deletions

View file

@ -373,7 +373,7 @@
stroke: currentcolor;
}
.codex-panel-ui__toolbar-control:focus:not(:hover):not(:focus-visible) {
.codex-panel-ui__toolbar-control:not(.is-active):focus:not(:hover):not(:focus-visible) {
background: transparent;
box-shadow: none;
color: var(--icon-color);

View file

@ -16,6 +16,17 @@ describe("panel CSS token scope", () => {
});
});
describe("chat toolbar CSS", () => {
it("does not let mouse-focus reset override active toolbar controls", () => {
const toolbarMouseFocus =
/\.codex-panel-ui__toolbar-control:not\(\.is-active\):focus:not\(:hover\):not\(:focus-visible\) \{(?<body>[^}]+)\}/.exec(styles)
?.groups?.["body"] ?? "";
expect(toolbarMouseFocus).toContain("background: transparent");
expect(toolbarMouseFocus).toContain("color: var(--icon-color)");
});
});
describe("threads view CSS", () => {
it("keeps long row titles clear of trailing actions", () => {
const titleLine = /\.codex-panel-threads__row-title-line \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";