Skip to content

Commit 5586f96

Browse files
fix(app): restore model variant accessibility (anomalyco#37857)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
1 parent 3b719ab commit 5586f96

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/app/e2e/regression/prompt-thinking-level.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test("shows the V2 thinking level control while relevant", async ({ page }) => {
5656
await page.goto(`/${base64Encode(directory)}/session/${sessionID}`)
5757
const composer = page.locator('[data-component="prompt-input-v2"]')
5858
const input = composer.locator('[data-component="prompt-input"]')
59-
const control = composer.locator('button[title="Choose model variant"]')
59+
const control = composer.getByRole("button", { name: "Choose model variant" })
6060
await expectAppVisible(composer)
6161

6262
await idleComposer(page)

packages/session-ui/src/v2/components/prompt-input/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ export function PromptInputV2Select(props: {
557557
variant="ghost-muted"
558558
size="normal"
559559
class={`max-w-[220px] justify-start ![font-weight:440] ${props.class ?? ""}`}
560+
aria-label={props.title}
560561
>
561562
{props.currentIcon}
562563
<span class="truncate capitalize leading-5">

0 commit comments

Comments
 (0)