From 2d854091b9684ab253a2c117509bf95609a975a1 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 5 Mar 2025 17:24:59 +0000 Subject: enhance(embed): add ability to pin color mode (#7186) * enhance(embed): add ability to pin color mode * fix: Move color mode dropdown to the root section * auto -> system * style tweaks * default to light theme * try and fix eslint * fix dropdown styles on other browsers * rm unnecessary eslintrc change * more explicit color mode select * make light explicit --------- Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> --- bskyembed/snippet/embed.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'bskyembed/snippet') diff --git a/bskyembed/snippet/embed.ts b/bskyembed/snippet/embed.ts index 3c1b14b95..7de7af1fe 100644 --- a/bskyembed/snippet/embed.ts +++ b/bskyembed/snippet/embed.ts @@ -68,6 +68,7 @@ function scan(node = document) { if (ref_url.startsWith('http')) { searchParams.set('ref_url', encodeURIComponent(ref_url)) } + searchParams.set('colorMode', embed.dataset.blueskyColorMode || 'system') const iframe = document.createElement('iframe') iframe.setAttribute('data-bluesky-id', id) -- cgit 1.4.1