diff --git a/docs/assets/js/ColorSelect.js b/docs/assets/js/ColorSelect.js index 64ba778d57..7c300d1b54 100644 --- a/docs/assets/js/ColorSelect.js +++ b/docs/assets/js/ColorSelect.js @@ -119,6 +119,7 @@ function renderSlots() { function startFlashingRed(index) { const slotElement = document.querySelector(`[data-slot="${index}"]`); slotElement.style.animation = 'flashRed 1s infinite'; + void slotElement.offsetWidth; // This line forces the reflow deleteMode = true; } diff --git a/docs/color_select_menu.md b/docs/color_select_menu.md index cf41e047d5..daeda683d8 100644 --- a/docs/color_select_menu.md +++ b/docs/color_select_menu.md @@ -73,10 +73,6 @@ grand_parent: Vortex Engine padding:0; } -@media ( - prefers-color-scheme: dark -) - @keyframes flashRed { 0% { background-color: inherit; } 50% { background-color: #700000; }