Conversation
d532aba to
ef81027
Compare
- accompanies #1089 - mirrors TACC/tup-ui@9cad63c
- accompanies #1089 - mirrors TACC/tup-ui@eb93d55
Review Summary by QodoFix accessibility issues with logo links, SVG labels, and icon exposure
WalkthroughsDescription• Add aria-label attributes to logo links and SVGs for accessibility • Replace <title> tags with aria-label in SVG elements • Conditionally apply aria-hidden="true" to icons only when editor doesn't set role • Add accessible labels to published/featured date elements • Fix logo hover color contrast from accent-normal to accent-light • Update Core-Styles dependency to fix/a11y-issues branch Diagramflowchart LR
A["Logo Links & SVGs"] -->|Add aria-label| B["Accessible Labels"]
C["Icon Elements"] -->|Conditional aria-hidden| D["Editor-Controlled a11y"]
E["Date Elements"] -->|Add aria-label| F["Published/Featured Labels"]
G["Hover Colors"] -->|Improve Contrast| H["Better Visibility"]
I["Dependencies"] -->|Update Core-Styles| J["a11y-issues Branch"]
File Changes1. taccsite_cms/templates/djangocms_blog/includes/blog_meta.html
|
Code Review by Qodo
1. Git dep requires SSH
|
Parent element reads <i class="icon…">` as a an odd character. Using `aria-hidden` isntead of `role` fixes that.
changes should be all in demo templates, not css; so, no-op
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan Review Summary by QodoFix accessibility issues with logos, icons, and external links
WalkthroughsDescription• Add accessible names to logo links via link_name config • Add aria-label and aria-describedby to SVG logos and social links • Conditionally apply aria-hidden="true" to icons unless editor sets role • Improve blog post date accessibility with aria-label on <time> elements • Fix external link handling to use aria-describedby instead of aria-label • Update logo hover color contrast for better accessibility Diagramflowchart LR
A["Logo & Branding Config"] -->|add link_name| B["Logo Links"]
B -->|aria-label| C["Accessible Names"]
D["SVG Templates"] -->|add role & title| E["SVG Logos"]
E -->|aria-label| C
F["Icon Template"] -->|conditional aria-hidden| G["Icon Accessibility"]
H["External Links JS"] -->|aria-describedby| I["New Window Notice"]
J["Blog Meta Template"] -->|aria-label on time| K["Date Accessibility"]
L["Social Share Links"] -->|aria-label| M["Share Link Names"]
File Changes1. taccsite_cms/_settings/branding.py
|
Code Review by Qodo
1. Mutable Core-Styles dependency
|
## Overview Fix misc accessibility issues. ## Related - required by TACC/Core-CMS#1089 - required by TACC/tup-ui#537 ## Changes 1. lighten accent color 39999f4, 5547d1a 2. darken body text 1756a14 3. darken modal close button (by not setting color) 1756a14 4. darken monospace text color (by changing variable) 1756a14 5. darken table text color (by not setting color) 1756a14 6. darken section text color (by changing variable) 1756a14 - remove `--color--text-strong` cuz it now matches `--color--text` 7. darker form page footer links (by inheriting color) 1756a14 8. darken normal text MORE via token/var 6e181d6, f39edcf 9. change footer links to blue 2900384, f39edcf - renames `…accent--light-old` to `…accent--light-alt` - adds new var `…accent--dark-alt` 10. explain "Update" pill (and remove extra span) a58244c 11. `data-prefix="Published:"` requires `aria-label="…"` afec01e 12. add `:active` state for header nav links a80f89d 13. darken footer background & lighten footer text f39edcf ## Testing & UI ### 1. — 11. from "Changes" > [!TIP] > Tested via TACC/Core-CMS#1089 and TACC/tup-ui#537. ### 12. add `:active` state for header nav links a80f89d https://github.com/user-attachments/assets/27b6795d-f4d4-4714-a26c-b222f4201c3e https://github.com/user-attachments/assets/7c4eefd3-b1be-4413-b0d9-05d1403f685f https://github.com/user-attachments/assets/e2316960-2bc7-4215-bb25-33536d40b176 ### 13. darken footer background & lighten footer text f39edcf > [!TIP] > Tested via TACC/tup-ui#537.
|
Qodo's required actions done, and its recommended tasks are inaccurate. |
## Overview Allow clicking an article's "read more" link (positioned over the article thumbnail). ## Related - bug found during testing of #1089 ## Changes - **adds** missing style ## Testing & UI https://github.com/user-attachments/assets/3460dbb3-3e69-4133-afae-c231b6edcf5e
## Overview Fix more accessibility bugs. ## Related - continues #1089 - required by TACC/tup-ui#546 ## Changes - [fix: links [not distinguishable enough] on news article leads](6786014) Links in lead are usually only hidden external article links, but we technically can have visible links in article leads. ## Testing Verify colors of link, unlinked text, and body, pass [color contrast test]. [color contrast test]: https://webaim.org/resources/linkcontrastchecker/?fcolor=222222&bcolor=FFFFFF&lcolor=3D6ACC ## UI https://github.com/user-attachments/assets/1fece9fa-c565-437f-b02f-f741ac929fe3 | screenshot of[color contrast test] passing | | - | | <img width="560" height="349" alt="screenshot of color contrast test passing" src="https://github.com/user-attachments/assets/44d94254-7c61-4476-8eaa-8aba400d459a" /> |
## Overview Fix color contrast to pass accessibility tests. ## Related - caused by TACC/Core-CMS#1089 - requires TACC/Core-CMS#1144 - required by TACC/Core-Portal-Deployments#170 ## Changes - **deletes** ecep-derived neutral colors <sup>this makes easier/consistent a11y color contrast testing)</sup> - **changes** an accent color to pass a11y color contrast - **adds** footer style to use black bkgd not header color ## Testing Run [Link Color Contrast Checker](https://webaim.org/resources/linkcontrastchecker/?fcolor=222222&bcolor=FFFFFF&lcolor=844FCD) against all combinations of text and background colors. - https://pprd.ecep.tacc.utexas.edu/publications/ (light and muted sections) - https://pprd.ecep.tacc.utexas.edu/resources/models/cmp/ (dark sections) Test Accordion (`<details><summary>`) UI states match those of links: - https://pprd.ecep.tacc.utexas.edu/cs-data/ecep-cs-education-dashboard/ ## UI Skipped.
Overview
Fix flagged accessibility issues.
Related
Changes
labelname 1eec2de 792e8ea 6248aae aebac3f 89355ddaria-hidden="true"(unless editor setsrole) 6c88b19sfor "Log In" unexplained to aria c0bc273 5b7d360data-prefix="Published:"requiresaria-label="…"7a06749Testing & UI
✅ logo links and images should have accessible names
✅ SVGs have accessible name
✅ an Icon (with no
role, not an SVG) hasaria-hidden="true"✅ embedded Video has default
title✅ logo links (e.g. for sharing on social media) have brighter blue hover color
#3d6accbrighter.blue.social.link.accent.mov
✅ accent colors for links are brighter (on light bkgd) (buttons unchanged)
Tip
See TACC/tup-ui#537 for test and screenshots.
✅ nav icon for "Log In" menu link has accessible markup
✅
data-prefix="Published:"elements have accessible nameTip
See TACC/tup-ui#537 for test and screenshots.
Tip
See TACC/tup-ui#537 for test and screenshots.
✅ new window/tab links get dynamic
aria-describedbynotaria-labelOpens.in.new.window.dynamic.aria.mov