From 81abf7ba8b58ef7629f3503d7b0cb99431663a7f Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 19 Oct 2024 05:55:21 +0330 Subject: [PATCH] Increase specificity to avoid rare white boxes This increases specificity of the mw-mmv-button to make sure it wins over '.cdx-button:enabled' and '.cdx-button.cdx-button--fake-button--enabled' that right now sometimes fail due to load order. Bug: T374373 Change-Id: I402aa0761615eeb0e080bb6087e0de778b6f493a --- resources/mmv/ui/mmv.ui.canvasButtons.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/mmv/ui/mmv.ui.canvasButtons.less b/resources/mmv/ui/mmv.ui.canvasButtons.less index b699966bd..7517e2d6c 100644 --- a/resources/mmv/ui/mmv.ui.canvasButtons.less +++ b/resources/mmv/ui/mmv.ui.canvasButtons.less @@ -6,7 +6,8 @@ // Common to all buttons // We override the codex background and borders to be their forced darkmode variant // We use transparency on the background and on the icon color -.cdx-button.mw-mmv-button { +// Increase of specificity by class name repeat to avoid rare white boxes, T374373 +.cdx-button.mw-mmv-button.mw-mmv-button { background-color: @buttons-background-color-faded; position: fixed; z-index: 1003;