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

Mobile: Make editor styles closer to desktop #10377

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Apr 26, 2024

Summary

This pull request simplifies the CodeMirror 6 styling logic by removing some of the theme.isDesktop conditionals in theme.ts.

Screenshots

Screenshot: Links are more faded, code is monospace

Both screenshots are from an Android 13 device.

opacity: theme.isDesktop ? 0.6 : 1,
opacity: 0.6,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change causes a contrast-related accessibility issue with the default theme:
screenshot: Contrast checker: #00337799 with opacity 0.6 has contrast 3.8:1

@laurent22 laurent22 merged commit 1bb3632 into laurent22:dev Apr 27, 2024
10 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