fix(app): restore model variant accessibility (#37857)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
co-authored by
Aiden Cline
parent
3b719aba48
commit
5586f9675e
@@ -56,7 +56,7 @@ test("shows the V2 thinking level control while relevant", async ({ page }) => {
|
|||||||
await page.goto(`/${base64Encode(directory)}/session/${sessionID}`)
|
await page.goto(`/${base64Encode(directory)}/session/${sessionID}`)
|
||||||
const composer = page.locator('[data-component="prompt-input-v2"]')
|
const composer = page.locator('[data-component="prompt-input-v2"]')
|
||||||
const input = composer.locator('[data-component="prompt-input"]')
|
const input = composer.locator('[data-component="prompt-input"]')
|
||||||
const control = composer.locator('button[title="Choose model variant"]')
|
const control = composer.getByRole("button", { name: "Choose model variant" })
|
||||||
await expectAppVisible(composer)
|
await expectAppVisible(composer)
|
||||||
|
|
||||||
await idleComposer(page)
|
await idleComposer(page)
|
||||||
|
|||||||
@@ -557,6 +557,7 @@ export function PromptInputV2Select(props: {
|
|||||||
variant="ghost-muted"
|
variant="ghost-muted"
|
||||||
size="normal"
|
size="normal"
|
||||||
class={`max-w-[220px] justify-start ![font-weight:440] ${props.class ?? ""}`}
|
class={`max-w-[220px] justify-start ![font-weight:440] ${props.class ?? ""}`}
|
||||||
|
aria-label={props.title}
|
||||||
>
|
>
|
||||||
{props.currentIcon}
|
{props.currentIcon}
|
||||||
<span class="truncate capitalize leading-5">
|
<span class="truncate capitalize leading-5">
|
||||||
|
|||||||
Reference in New Issue
Block a user