482 Commits

Author SHA1 Message Date
Tetrakern
fe36c8f379 Site width formatting now only affects content
And does not longer potentially break the layout.
2023-01-31 19:21:05 +01:00
Tetrakern
8f8212c524 Fix site notification HTML escaping 2023-01-31 06:10:44 +01:00
Tetrakern
eb1e5412ad Script safety checks for missing targets 2023-01-28 21:29:46 +01:00
Tetrakern
d92713f3d2 Store user story settings for view and order 2023-01-26 23:34:02 +01:00
Tetrakern
7a4d9f7cd6 Closing modals no longer changes scroll position
Unless the user is tabbing, but this is the desired behavior.
2023-01-26 17:05:28 +01:00
Tetrakern
d858423a77 Simplify code 2023-01-26 17:02:03 +01:00
Tetrakern
32b95a8768 Change spoiler handling with paragraph tools
Never toggle paragraph tools when a spoiler is clicked. This is preferable to the old guess to figure out what the user wants.
2023-01-26 17:00:17 +01:00
Tetrakern
1fa7b145fa Make TTS accessible via keyboard 2023-01-26 12:08:17 +01:00
Tetrakern
69bc067141 Add sanitizer for HTML
To prevent cross-site scripting attacks.
2023-01-26 01:11:38 +01:00
Tetrakern
76c6e4a17d Disable no-scroll for lightbox
This causes layout shifts in its current version.
2023-01-24 23:57:49 +01:00
Tetrakern
476e3cd253 Solve select focus issue
Focus style will only apply when the user is really tabbing.
2023-01-24 23:44:40 +01:00
Tetrakern
e8bb9e6756 Remove console log statement
F***
2023-01-24 19:59:32 +01:00
Tetrakern
390a69710d Apply aria-checked to all role=checkbox 2023-01-24 19:58:09 +01:00
Tetrakern
cd19a872be Apply aria-checked to checkmarks
It just doesn't stop with this ARIA stuff...
2023-01-24 18:06:19 +01:00
Tetrakern
8c6a09a656 Fix chapter group collapse - again
I'm starting to question my sanity.
2023-01-24 17:36:11 +01:00
Tetrakern
55519c01bb Improve chapter group toggles 2023-01-24 13:46:26 +01:00
Tetrakern
2b91775560 Make checkmarks tab-able 2023-01-24 13:30:03 +01:00
Tetrakern
3ac0c2e98d Preserve tab index when lightbox is opened 2023-01-24 12:57:43 +01:00
Tetrakern
cbe12fcc38 Close lightbox with escape key 2023-01-24 11:46:00 +01:00
Tetrakern
7db1fa1d6f Set suggestion modal focus when opened 2023-01-24 11:20:38 +01:00
Tetrakern
d331062285 Preserve tab index on modal escape 2023-01-24 10:40:55 +01:00
Tetrakern
ce60bce8c0 Update page number jump script
Missing documentation and misused it to add a tabindex to the dots because its's convenient.
2023-01-24 10:09:56 +01:00
Tetrakern
eec5be8220 Load follows on focus on menu item 2023-01-24 04:20:47 +01:00
Tetrakern
1126c4794a Change event listener syntax for mobile menu close 2023-01-24 04:20:07 +01:00
Tetrakern
a7a00e217a Close modals/popup menus with escape key 2023-01-24 04:19:30 +01:00
Tetrakern
12164a4211 Make tabindex 0 action more fail-safe
Some elements may be loaded via AJAX and would not get the Event Listener.
2023-01-24 02:56:23 +01:00
Tetrakern
6c7e8be00d Vastly improve accessibility
Labels can be tab-navigated and used with the keyboard, added focus styles to most interactive elements, also fixed some style and translation issues.
2023-01-24 02:18:31 +01:00
Tetrakern
93f98752c0 Make elements with tabIndex accessible via keyword 2023-01-23 22:22:49 +01:00
Tetrakern
3dd5dba9e3 Fix tabindex issue in collapsed chapter lists 2023-01-23 22:01:29 +01:00
Tetrakern
23fd9cf19f Improve accessibility of story comments list 2023-01-23 04:20:05 +01:00
Tetrakern
9b0ebbd700 Fix lightbox image position 2023-01-22 23:58:13 +01:00
Tetrakern
9136947e4c Clean history for public release 2023-01-21 01:31:34 +01:00