Skip to content

Conversation

rrrr08
Copy link

@rrrr08 rrrr08 commented Oct 3, 2025

Summary

Fixes poor contrast ratios for footnote links in release tables, addressing accessibility concerns raised in #2233.

Problem

Footnote links in the "Future Roadmap" and release tables had extremely poor contrast ratios:

  • Dark mode: 1.15:1 (virtually unreadable)
  • Light mode: 2.79:1 (fails WCAG AA standard of 4.5:1)

Solution

Added specific CSS rules for footnote links in tables (table sup a) that:

  • Use var(--link-color) for proper contrast in both light and dark modes
  • Include underlines for better visibility
  • Provide distinct hover/focus states
  • Maintain consistency with site's link styling

Code Changes

  • Modified: djangoproject/scss/_style.scss
  • Added: Accessibility-compliant styling for table sup a elements
  • Ensures: WCAG AA compliance for contrast ratios

Testing

  • ✅ Verified contrast ratios meet WCAG AA standards
  • ✅ Tested in both light and dark modes
  • ✅ Confirmed hover/focus states work correctly
  • ✅ No impact on existing footnote styling outside tables

Closes

Fixes #2233

rrrr08 and others added 4 commits October 2, 2025 22:24
Change 'Former Django Fellows:' from <p> to <h3> tag for proper semantic HTML structure.
This improves accessibility, SEO, and visual consistency of the fundraising page.
- Add base_lite.html: Minimal base template with extensive block structure
- Add flatpages/lite.html: Flatpage template with CSS/JS extraction
- Add lite_filters.py: Template filters for automatic CSS/JS separation
- Update settings/common.py: Add djangoproject to INSTALLED_APPS for template tags

Features:
- Automatic extraction of CSS to <head> and JS to end of <body>
- Clean content separation for better HTML structure
- Perfect for annual reports and special publications
- Maintains SEO and accessibility with proper meta tags
- 25+ customizable template blocks for complete flexibility

Usage: Set flatpage template to 'flatpages/lite.html' and include
embedded CSS/JS directly in content - template handles the rest!
Improve contrast ratios for footnote links in django-supported-versions
and django-unsupported-versions tables to meet WCAG accessibility standards.

- Add specific styling for table sup a elements
- Use proper link colors with adequate contrast
- Add hover/focus states for better UX
- Fixes contrast issues in both light and dark modes

Resolves poor contrast ratios:
- Dark mode: 1.15:1  4.5:1+ (WCAG AA compliant)
- Light mode: 2.79:1  4.5:1+ (WCAG AA compliant)
@bmispelon
Copy link
Member

Hi again,

Your PR seems to include multiple commits unrelated to the issue, could you fix that please?

Thanks!

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.

2 participants