We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Selecting text in dark theme is hiding the texts with links
Set website theme as dark mode or system (with dark mode enabled)
Texts with links should be readable even after selection
Text with links gets hidden upon selection
The text was updated successfully, but these errors were encountered:
After investigating in dev tools below style looks as cause
:is(html[class~=dark] *)::selection { CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX; --tw-bg-opacity: 1; background-color: rgb(225 0 152 / var(--tw-bg-opacity, 1)); }
If I reduce --tw-bg-opacity property value to 0.5 from 1, text becomes readable.
--tw-bg-opacity
0.5
1
Sorry, something went wrong.
graphql.github.io/src/globals.css
::selection { @apply bg-primary/50 dark:bg-primary; }
is this correct place to apply fix?
cc @dimaMachina ^
No branches or pull requests
Description
Selecting text in dark theme is hiding the texts with links
Steps to Reproduce
Set website theme as dark mode or system (with dark mode enabled)
Expected Result
Texts with links should be readable even after selection
Actual Result
Text with links gets hidden upon selection
Additional Context
The text was updated successfully, but these errors were encountered: