diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..d5c48fa --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-24 - Accessibility improvements for icon-only buttons +**Learning:** Buttons or links with `hidden lg:inline` text classes lose their accessible names on small screens, causing screen readers to read nothing or raw icon ligatures. +**Action:** When creating responsive buttons/links that hide visible text on smaller screens, add an explicit `aria-label` attribute on the parent interactive element (` @@ -210,11 +210,11 @@

Generated Ou
- -
diff --git a/glassui.html b/glassui.html index 700dc49..18f82d3 100644 --- a/glassui.html +++ b/glassui.html @@ -147,9 +147,9 @@

+ @@ -206,11 +206,11 @@

Generated Ou
- -
diff --git a/verify_ui.py b/verify_ui.py new file mode 100644 index 0000000..3d65d55 --- /dev/null +++ b/verify_ui.py @@ -0,0 +1,12 @@ +import asyncio +from playwright.async_api import async_playwright + +async def main(): + async with async_playwright() as p: + browser = await p.chromium.launch(headless=True) + page = await browser.new_page() + await page.goto("file:///app/dashboard.html", timeout=10000) + await page.screenshot(path="/home/jules/verification/dashboard.png") + await browser.close() + +asyncio.run(main())