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

Profile page: Dynamically adjust text color to ensure sufficient contrast #1514

Open
davort opened this issue Jan 27, 2023 · 1 comment
Open
Labels
feature request Feature Requests

Comments

@davort
Copy link

davort commented Jan 27, 2023

What would you like to be added?

When a user uploads a light background image, the color of the text on the profile page should change from white to black.

An example of the current state
CleanShot 2023-01-27 at 09 13 44

Why is this needed?

To ensure sufficient contrast between the text and the background. This is a fundamental feature in terms of accessibility.

@davort davort added the feature request Feature Requests label Jan 27, 2023
@dysbulic
Copy link
Member

dysbulic commented Jan 30, 2023

Maybe with CSS's mix-blend-mode or background-blend-mode could cause the color, when combined with the background, to adaptively provide contrast.

Before I can really try and tackle this, I need to understand what a “stacking context” is and what it means to create a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature Requests
Projects
None yet
Development

No branches or pull requests

2 participants