Top Languages Card having issues with picture and source elements for light and dark mode #3723
-
Beta Was this translation helpful? Give feedback.
Answered by
qwerty541
Apr 13, 2024
Replies: 1 comment 2 replies
-
Hey, @kennethjmyers! You have to URL encode the content of <picture>
<source
srcset="https://github-readme-stats.vercel.app/api/top-langs?username=kennethjmyers&show_icons=true&locale=en&layout=compact&theme=dark&hide=HTML%2CCSS%2CSCSS%2CRuby%2CJupyter%20Notebook"
media="(prefers-color-scheme: dark)"
/>
<source
srcset="https://github-readme-stats.vercel.app/api/top-langs?username=kennethjmyers&show_icons=true&locale=en&layout=compact&hide=HTML%2CCSS%2CSCSS%2CRuby%2CJupyter%20Notebook"
media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
/>
<img src="https://github-readme-stats.vercel.app/api/top-langs?username=kennethjmyers&show_icons=true&locale=en&layout=compact&hide=HTML%2CCSS%2CSCSS%2CRuby%2CJupyter%20Notebook" />
</picture> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kennethjmyers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, @kennethjmyers! You have to URL encode the content of
hide
query string parameter when usingpicture
andsource
elements. I will add an example below.