Desktop, Mobile: Editor: Ensure checkbox size is proportional to font size

This commit is contained in:
Laurent Cozic committed 2026-07-03 18:57:50 +01:00
1 parent 89884e941e
commit c6cc90a509
1 file changed
+4
@@ -68,6 +68,10 @@ const replaceCheckboxes = [
EditorView.theme({
[`& .${checkboxClassName}`]: {
'& > input': {
// Native inputs don't inherit font-size, so `em` units below
// would otherwise resolve against the UA default rather than
// the editor's font size.
fontSize: 'inherit',
width: '1.1em',
height: '1.1em',
margin: '4px',