From 3e037b7efdfa8e36465c145c678231dbf1a4a401 Mon Sep 17 00:00:00 2001 From: luin Date: Fri, 19 Feb 2021 12:39:22 +0800 Subject: [PATCH] Fix checkbox not checkable on Firefox --- assets/core.styl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/core.styl b/assets/core.styl index fb19d865f0..d2781ab0c7 100644 --- a/assets/core.styl +++ b/assets/core.styl @@ -72,9 +72,7 @@ resets(arr) list-style-type: none padding-left: LIST_STYLE_OUTER_WIDTH position: relative - @supports (display: contents) - > .ql-ui - display: contents + > .ql-ui:before display: inline-block margin-left: -1*LIST_STYLE_OUTER_WIDTH @@ -83,6 +81,12 @@ resets(arr) white-space: nowrap width: LIST_STYLE_WIDTH + @supports (display: contents) + li[data-list=bullet], + li[data-list=ordered] + > .ql-ui + display: contents + li[data-list=checked], li[data-list=unchecked] > .ql-ui