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

Abnormal Text Selection Style on Share Page #1235

Closed
2 of 4 tasks
L33Z22L11 opened this issue Oct 30, 2024 · 12 comments
Closed
2 of 4 tasks

Abnormal Text Selection Style on Share Page #1235

L33Z22L11 opened this issue Oct 30, 2024 · 12 comments
Assignees

Comments

@L33Z22L11
Copy link

Describe the bug

On the share page for user/subscription/list, selected text appears with a transparent background and white font color, which closely matches the page's background color. This reduces readability significantly and makes selected text difficult to distinguish in light color mode. Adjusting the selection style to improve contrast would enhance readability.

Feed Info

Reproduction Video

No response

App Type

Web

Version

0.1.1-beta.1

Operating System

Windows 11

Browser Info

Microsoft Edge 130.0.2849.56

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Copy link

linear bot commented Oct 30, 2024

@Innei
Copy link
Member

Innei commented Nov 5, 2024

I'm not very clear about what you mean, can you provide a screenshot?

@Innei Innei self-assigned this Nov 5, 2024
@L33Z22L11
Copy link
Author

Image

@Innei
Copy link
Member

Innei commented Nov 5, 2024

Image

can't reproduce.

@L33Z22L11
Copy link
Author

This reduces readability significantly and makes selected text difficult to distinguish in light color mode.

It can be reproduced in light color mode.

@Innei
Copy link
Member

Innei commented Nov 5, 2024

It works on my Windows 11 chrome 130.0.6723.92

@Innei
Copy link
Member

Innei commented Nov 5, 2024

Image

light mode also can't reproduce

@Innei
Copy link
Member

Innei commented Nov 5, 2024

Can't reproduce both macOS and Windows. Closed this issue. If other users met this issue can re-open again.

@Innei Innei closed this as completed Nov 5, 2024
@L33Z22L11
Copy link
Author

Image

light mode also can't reproduce

You may use Dark Reader Chrome extention. Don't use the light color utility of extentions. You should trun to Chrome settings to switch to light color mode.

@L33Z22L11
Copy link
Author

Image

Firefox is okay, but Edge (normal or edge://flags/#force-color-profile selected to sRGB) and Chrome canary didn't give background-color of ::selection.

Image

@L33Z22L11
Copy link
Author

  • Microsoft Edge 130.0.2849.68 (Release) (64bit)
  • Chrome 132.0.6820.0(Release)canary (64 bit)

In short, the usage of var(--tw-bg-opacity) from origin value var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity))) caused this. When var(--tw-bg-opacity) is replaced by a simple 1, it behaves normally.

@L33Z22L11
Copy link
Author

It's related to tailwindlabs/tailwindcss#15000 and fixed.

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

No branches or pull requests

2 participants