-
-
Notifications
You must be signed in to change notification settings - Fork 891
fix(action): icon preview light and dark mode #3389
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
base: main
Are you sure you want to change the base?
fix(action): icon preview light and dark mode #3389
Conversation
Added or changed iconsIcons as codeWorks for: const HousesIcon = createLucideIcon('Houses', [
["path",{"d":"M10 20v-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5"}],
["path",{"d":"M6 17H3a1 1 0 0 1-1-1V9.5c0-.6.3-1.2.7-1.6l4.6-3.7a1 1 0 0 1 1.3 0l8.7 7.3c.4.4.7.9.7 1.5v6a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-6c0-.6.3-1.1.7-1.5l8.6-7.3a1 1 0 0 1 1.3 0l4.6 3.7c.5.4.8 1 .8 1.6V16a1 1 0 0 1-1 1h-3"}]
]) |
c9c44aa
to
7f72657
Compare
modified to point to the preview urlAdded or changed iconsIcons as codeWorks for: const HousesIcon = createLucideIcon('Houses', [
["path",{"d":"M10 20v-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5"}],
["path",{"d":"M6 17H3a1 1 0 0 1-1-1V9.5c0-.6.3-1.2.7-1.6l4.6-3.7a1 1 0 0 1 1.3 0l8.7 7.3c.4.4.7.9.7 1.5v6a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-6c0-.6.3-1.1.7-1.5l8.6-7.3a1 1 0 0 1 1.3 0l4.6 3.7c.5.4.8 1 .8 1.6V16a1 1 0 0 1-1 1h-3"}]
]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I should have marked this as draft; it got mangled playing around with PRs to my fork (just trying to get the action running properly on there) to test properly… but running into So the correct CSS workaround for the underlying bug—which a multibillion dollar company seems unable to fix—is as follows: :root { color-scheme: light dark }
* { stroke: currentcolor }
_::-webkit-full-page-media, _:future, :root * {
stroke: white;
mix-blend-mode: difference;
} This works for the SVGs in READMEs on many of my other repos, and others. The only issue here, with this applied to overlapping
Thanks @jguddas, that beats trying to copy it and cleanup from the Actions run log… But ideally, I was hoping to get the bot running exactly the same on my fork… |
7f72657
to
1d54397
Compare
c0ea026
to
1d54397
Compare
a4fd2a5
to
14b9225
Compare
14b9225
to
1d54397
Compare
Fixes #1489 properly, improving on #1493.
Description
Fix icon preview to display correctly, cross-browser, including a temporary bug fix for WebKit.
Before Submitting