From 754fcc2b3abea7f17b1833a3ec9fb8dc1ddb97ce Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 17 Jul 2023 14:20:31 +1000 Subject: [PATCH] Update bold check to font weight 700 https://github.com/ankitects/anki/issues/2453 --- ts/editor/editor-toolbar/BoldButton.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/editor/editor-toolbar/BoldButton.svelte b/ts/editor/editor-toolbar/BoldButton.svelte index 7afa30e26..76d34ad4f 100644 --- a/ts/editor/editor-toolbar/BoldButton.svelte +++ b/ts/editor/editor-toolbar/BoldButton.svelte @@ -25,7 +25,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html } const fontWeight = element.style.fontWeight; - if (fontWeight === "bold" || Number(fontWeight) >= 400) { + if (fontWeight === "bold" || Number(fontWeight) >= 700) { return match.clear((): void => { if ( removeStyleProperties(element, "font-weight") &&