Skip to content

🎨 Palette: Add missing alt attributes to images#15

Open
cmonteverde wants to merge 1 commit into
mainfrom
palette-ux-accessible-images-13489318788887677083
Open

🎨 Palette: Add missing alt attributes to images#15
cmonteverde wants to merge 1 commit into
mainfrom
palette-ux-accessible-images-13489318788887677083

Conversation

@cmonteverde

Copy link
Copy Markdown
Owner

This PR addresses accessibility issues where images injected via st.markdown raw HTML lacked alt attributes.

Changes:

  1. app.py:
    • Added alt="" to the background topography image (decorative).
    • Added alt="CeCe Avatar" to the main character avatar (informative/branding).
  2. satellite_homepage.py:
    • Added alt="" to the preview logo (decorative, adjacent to text).
  3. Project Hygiene:
    • Created .gitignore to prevent committing __pycache__, *.pyc, and logs.

Testing:

  • Verified environment with test_api_status.py.
  • Verified HTML attributes using a Playwright script (verify_a11y.py) which confirmed the presence of the alt tags in the DOM.

PR created automatically by Jules for task 13489318788887677083 started by @cmonteverde

- Add `alt=""` to decorative topography image in `app.py`.
- Add `alt="CeCe Avatar"` to informative avatar image in `app.py`.
- Add `alt=""` to decorative logo image in `satellite_homepage.py`.
- Create `.gitignore` to exclude build artifacts and logs.
- Update UX journal in `.Jules/palette.md`.

This improves screen reader experience by properly identifying decorative and informative images injected via raw HTML.

Co-authored-by: cmonteverde <83616016+cmonteverde@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant