Skip to content

Fix dark mode visibility for Sessionize widget tabs#199

Merged
matrixise merged 1 commit intomasterfrom
fix/dark-mode-sessionize-tabs
Feb 3, 2026
Merged

Fix dark mode visibility for Sessionize widget tabs#199
matrixise merged 1 commit intomasterfrom
fix/dark-mode-sessionize-tabs

Conversation

@matrixise
Copy link
Contributor

Summary

Fixes #198 by adding CSS overrides for the Sessionize schedule widget to ensure tab navigation links are visible in dark mode.

Problem

The Sessionize widget (used for the conference schedule) uses inline styles that don't adapt to dark mode. This caused inactive day selection tabs to appear nearly invisible when dark mode is enabled, as they had dark text (rgba(17, 17, 17, 0.6)) on a dark background.

Solution

Added CSS rules in pythonie/core/static/css/style.css to override Sessionize widget styles in dark mode:

  • Inactive tabs: Use --text-color variable (light gray: #bdbcb2) for readability
  • Active tabs: Use white (#fff) for maximum contrast against the widget's teal background
  • Hover/focus states: Use --link-hover-color for consistent interaction feedback
  • Comprehensive coverage: Include :link and :visited pseudo-classes to ensure styles apply in all link states

All rules use !important to override the widget's inline styles.

Testing

Tested on https://python.ie/pycon-2025/schedule/ by injecting the CSS and verifying:

  • ✅ Inactive tabs are now visible in dark mode (Saturday/Sunday navigation)
  • ✅ Active tabs have proper contrast
  • ✅ Hover states work correctly
  • ✅ Styles work for both :link and :visited states

Screenshots

The Saturday/Sunday tab navigation is now clearly visible in dark mode.

Add CSS rules to ensure Sessionize schedule tab navigation links are
visible in dark mode. The widget's inline styles were causing inactive
tabs to appear nearly invisible (dark text on dark background).

Changes:
- Apply --text-color to inactive Sessionize tab links in dark mode
- Apply white color to active tab links for better contrast
- Include :link and :visited pseudo-classes for comprehensive coverage
- Add hover/focus states for consistent interaction feedback

Fixes #198
@matrixise matrixise merged commit cc27c4d into master Feb 3, 2026
2 checks passed
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.

Darkmode theme hides day selection button on PyCon schedule

1 participant