16:59:28
redsh4de:matrix.org:
now that the website is nearing completion, what do we think about the theme toggle?
17:02:39
basses:matrix.org:
@redsh4de:matrix.org: js-less?
17:02:49
basses:matrix.org:
and accessible
17:03:13
redsh4de:matrix.org:
accessible, but does use javascript - 9 lines to be exact
17:03:32
redsh4de:matrix.org:
https://mrelay.p2pool.observer/p/qdCK9OEKYkJDTUFa/1.txt (code snippet, 16 lines)
17:03:38
basses:matrix.org:
does website use any js on client?
17:04:23
redsh4de:matrix.org:
no - this would be the only client side javascript, and the toggle would be hidden if the user has javascript disabled (Tor, etc)
17:04:57
redsh4de:matrix.org:
there is no pratical way to make it js-less without having to render double the pages - persistence required fetching a flag from the browsers local storage and responding to theme preference changes
17:05:07
redsh4de:matrix.org:
s/required/requires
17:05:11
basses:matrix.org:
nah, if we introduced any js elements, then we would also do so for more important UX parts like menus etc
17:05:57
redsh4de:matrix.org:
this was already implemented btw as a preview, on a seperate fork - we had a discussion about it a few weeks back
17:06:13
basses:matrix.org:
the theme toggle?
17:06:22
redsh4de:matrix.org:
yep
17:06:35
basses:matrix.org:
it is uselss imo comapred to menus
17:07:11
redsh4de:matrix.org:
our menus work quite well even without JavaScript
17:07:35
basses:matrix.org:
I literally never use theme toggle as it always detect it from prefers-color-scheme
17:07:59
basses:matrix.org:
@redsh4de:matrix.org: the issues we dicussed before
17:08:33
redsh4de:matrix.org:
right, the dropdown being the only one - but that is solved with anchor css. granted we can only implement it somewhere in July this year when ESR adds it
17:08:48
redsh4de:matrix.org:
pinging @syntheticbird:monero.social
17:10:20
basses:matrix.org:
@basses:matrix.org: the only usecase for it is for Mullvad browser and Tor browser (on safest) as prefers-color-scheme is blocked
17:10:33
basses:matrix.org:
so they change theme manually by using the toggle
17:10:57
redsh4de:matrix.org:
beginning of the topic if u wanna read up on the discussion > <@redsh4de:matrix.org> can def do that, just not sure how strict the "no JavaScript" requirement is
17:11:16
redsh4de:matrix.org:
@basses:matrix.org: yea, but isn't it kinda useless even there due to NoScript?
17:11:27
redsh4de:matrix.org:
at least on Tor
17:12:39
basses:matrix.org:
@redsh4de:matrix.org: https://www.privacyguides.org/en/basics/why-privacy-matters/ toggle here works without triggering any Noscript warnings
17:13:03
basses:matrix.org:
safest mode
17:13:13
basses:matrix.org:
safer*
17:13:41
redsh4de:matrix.org:
yea it would work on safer as it allows JS on HTTPs sites
17:13:51
redsh4de:matrix.org:
safest blocks all JS
17:13:58
redsh4de:matrix.org:
would be the same thing here
17:14:18
basses:matrix.org:
yes ^ > <@basses:matrix.org> the only usecase for it is for Mullvad browser and Tor browser (on safest) as prefers-color-scheme is blocked
17:14:28
redsh4de:matrix.org:
misread
17:14:32
basses:matrix.org:
np
17:41:32
syntheticbird:
wat > <@redsh4de:matrix.org> pinging @syntheticbird:monero.social
17:41:35
syntheticbird:
whats going on
17:42:14
redsh4de:matrix.org:
brought up le js toggle as im basically done with website
17:42:16
syntheticbird:
huh no? > <@basses:matrix.org> nah, if we introduced any js elements, then we would also do so for more important UX parts like menus etc
17:43:13
syntheticbird:
@redsh4de:matrix.org: https://mrelay.p2pool.observer/m/monero.social/YJVknTpWwpDePtXwzBnyJiyj.gif (luigi-chad.gif)
17:46:50
plowsof:
👍