Desktop: Accessibility: Add setting to increase scrollbar and other small control sizes #11627
+281
−224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Goal: Allow users to make scrollbars meet WCAG 2.2 SC 2.5.8: Content Size (Minimum) by adding a setting to allow increasing their minimum dimension to 24px.
Note: An alternate approach — a setting that switches to system scrollbars is implemented here. However, I haven't found a simple way to increase the size of the OS scrollbars used in Joplin from system settings. For example, this Windows thread links to an article that suggests editing the registry.
Screenshots
The setting (small/7px):
Medium (12px):
Large (24px):
Sidebar, note list, Markdown editor and viewer visible (setting enabled):
Rich Text Editor (setting enabled):
Revision viewer (setting enabled):
Notes
StyleSheetContainer
component was renamed toAppStyles
. In addition to adding style sheets to each Joplin window, the component now adds a-large-controls
CSS class to the:root
element when the large controls setting is enabled..-large-controls
class is used inmain.scss
to set the scrollbar and default checkbox size.packages/renderer
for rendered Markdown.useMarkupToHtml
hook for rendering as theNoteEditor
. This change was intended to simplify passing theincreaseControlsSize
setting to the renderer.NoteRevisionViewer
was converted from a class to a function component.To-do
packages/renderer
andpackages/app-desktop
. To these changes easier to review, it may make sense to move them to a separate pull request.Testing plan
Fedora 41: