Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC-993: Text highlight colour on dark mode #748

Merged
merged 2 commits into from
Jan 7, 2025
Merged

OC-993: Text highlight colour on dark mode #748

merged 2 commits into from
Jan 7, 2025

Conversation

finlay-jisc
Copy link
Collaborator

The purpose of this PR was to add a highlight / text selection style that applies in dark mode, as this is currently missing.

This style was present in the codebase, but due to a bug in tailwind < 3.4.2 it wasn't applying correctly. Updating tailwind made the rule apply and I have set the background colour to be darker to meet AAA text contrast levels.


Acceptance Criteria:

Highlighting text on dark mode results in text colour and background colour being inverted.


Checklist:

  • Local manual testing conducted
  • Automated tests added
  • Documentation updated

Tests:

UI
Screenshot 2025-01-07 090356

E2E
Screenshot 2025-01-07 095054


Screenshots:

Screenshot 2025-01-07 100213
Screenshot 2025-01-07 100205

@finlay-jisc finlay-jisc requested a review from a team as a code owner January 7, 2025 10:04
@finlay-jisc finlay-jisc merged commit cafbeb1 into main Jan 7, 2025
9 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.

2 participants