Skip to content

copy-on-y - Make the notification easier to notice - #10421

Draft
fregante wants to merge 2 commits into
mainfrom
claude/copy-on-y-visibility
Draft

fregante wants to merge 2 commits into
mainfrom
claude/copy-on-y-visibility

Conversation

@fregante

Copy link
Copy Markdown
Member

Created by Claude Biscuit, will be reviewed by @fregante first.

The overlay now flips the page's colors (black on light pages, white on dark ones) and zooms out as it appears. It's shared with hidden-content, which gets the same look.

Fixes #9591

Test URLs:

Any page, particularly it should work copy the permalink when y is pressed on:

https://github.com/refined-github/refined-github/blob/main/.gitignore

hidden-content:

https://togithub.com/prettier/prettier/issues/7475

Checked, logged out, in headless Chromium with the extension loaded, on the .gitignore URL above: pressing y shows the overlay; light, dark and auto (with the OS set to either) get the right colors, and the zoom goes from 2x to 1x in 250ms. Not checked: logged-in pages, and GitHub's real dark theme (its stylesheets were blocked, so only the data-color-mode attribute was exercised).

Reviewer task: press y on a logged-in page in both themes and confirm it's noticeable enough (the issue also mentions size).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

copy-on-y is invisible

1 participant