Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00cc1b4

Browse files
Increase font size for accessibility (ankitects#3832)
Apparently no font size should be lower than 12px, see https://www.boia.org/blog/accessibility-tips-let-users-control-font-size. With the current 55%, I get a computed font size of 8.25px though. Considering the text shows the helpful message "Press ⁨Enter⁩ to accept, ⁨Shift+Enter⁩ for new line.", I think we should add a minimum font size.
1 parent 8ec139f commit 00cc1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/editor/mathjax-overlay/MathjaxEditor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
144144
145145
:global(.CodeMirror-placeholder) {
146146
font-family: sans-serif;
147-
font-size: 55%;
147+
font-size: max(12px, 55%);
148148
text-align: center;
149149
color: var(--fg-subtle);
150150
}

0 commit comments

Comments
 (0)