version switch: turn into a custom element #104778

Open
Tobias Heinke wants to merge 3 commits from Tobias/blender-manual:switcher-two into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

3 Commits

Author SHA1 Message Date
tobiasHeinke
beb88b5ced declare type as attr instead of id
rename closed state to adjective
2024-05-24 05:41:31 +02:00
tobiasHeinke
7409670ef6 back to use class to store state 2024-05-06 01:09:31 +02:00
tobiasHeinke
d965fd1dbc version switch: turn into a custom element
store state as attr instead of class
   to be then replaced by upcoming custom states
   https://html.spec.whatwg.org/multipage/custom-elements.html#custom-state-pseudo-class
remove function name prefix no longer confusable with JQuery
move animation to css
   transition requires visibility instead of display
not toggle/ replace event listeners
no class properties
split toggle function
css: use tagnames instead of class if not div
rename class selected -> current
mark previously selected with a class
2024-05-06 01:09:29 +02:00