fix(chat): restore 11px mode label on the change-agent button (#17616)

Co-authored-by: neubig <neubig@users.noreply.github.com>
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Harsh Kashyap
2026-09-23 02:01:48 +00:00
committed by GitHub
co-authored by neubig openhands
parent 361126fa97
commit fb8664e2e8
2 changed files with 10 additions and 1 deletions
@@ -264,6 +264,15 @@ describe("ChangeAgentButton mode selection", () => {
).not.toBeInTheDocument();
});
it("sizes the mode label at the intended 11px", () => {
renderButton();
const label = screen.getByText("COMMON$CODE");
expect(label).toHaveClass("text-[11px]");
expect(label).toHaveClass("text-white");
expect(label).not.toHaveClass("text-2.75");
});
it("selects plan and code modes from the menu", async () => {
const user = userEvent.setup();
renderButton();
@@ -185,7 +185,7 @@ export function ChangeAgentButton() {
>
<div className="flex items-center gap-1 pl-1.5">
{buttonIcon}
<Typography.Text className="text-2.75 not-italic font-normal leading-5">
<Typography.Text className="text-[11px] not-italic font-normal leading-5">
{buttonLabel}
</Typography.Text>
</div>