From 54bb73992f86ac4efb610881d4030de6834eaa05 Mon Sep 17 00:00:00 2001 From: ShahadatTest Date: Mon, 2 Nov 2026 18:04:07 +0000 Subject: [PATCH] fix(installer): hide check icon while uninstall tick is unticked The ConfirmUninstall checkbox always showed the check mark glyph; only the box fill changed when ticked. Hide the icon with visibility until input:checked, keeping the 16px box size stable. UI test asserts both states. --- Production/Installer/Installer/Ui/CSS/Installer.css | 3 +++ Production/Installer/Tests/TestUi.mjs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Production/Installer/Installer/Ui/CSS/Installer.css b/Production/Installer/Installer/Ui/CSS/Installer.css index 1f1dcf5..7a9d3e9 100644 --- a/Production/Installer/Installer/Ui/CSS/Installer.css +++ b/Production/Installer/Installer/Ui/CSS/Installer.css @@ -693,6 +693,8 @@ body { .InstCheckboxRow .CheckboxBox i { font-size: 11px; color: var(--Accent); + /* Hide while unticked so the mark is not shown as a ghost check (#2). */ + visibility: hidden; } .InstCheckboxRow input[type="checkbox"]:checked + .CheckboxBox { @@ -702,6 +704,7 @@ body { .InstCheckboxRow input[type="checkbox"]:checked + .CheckboxBox i { color: var(--BgCard); + visibility: visible; } /* ===== SCREEN SLIDE TRANSITIONS ===== */ diff --git a/Production/Installer/Tests/TestUi.mjs b/Production/Installer/Tests/TestUi.mjs index 6ea2a89..d05283c 100644 --- a/Production/Installer/Tests/TestUi.mjs +++ b/Production/Installer/Tests/TestUi.mjs @@ -295,8 +295,11 @@ try { await Hook('StartScreen', { Screen: '' }); Check('/Uninstall opens straight at the confirm screen (Settings > Apps)', (await Crumbs()) === 'Menu > Confirm* > Progress > Goodbye' && (await Text('#ConfirmUninstallMsg')).startsWith("You're about to uninstall RAMMIT v1.1.0.")); + const CheckIconVisibility = () => Page.$eval('[data-screen=ConfirmUninstall] .CheckboxBox i', E => getComputedStyle(E).visibility); + Check('unticked check icon is hidden (#2)', (await CheckIconVisibility()) === 'hidden'); await Page.click('[data-screen=ConfirmUninstall] .InstCheckboxRow'); Check('tick box changes the warning (Test1)', /also remove your Config\/ folder/.test(await Text('#ConfirmUninstallMsg'))); + Check('ticked check icon is visible (#2)', (await CheckIconVisibility()) === 'visible'); await Page.click('[data-screen=ConfirmUninstall] .InstCheckboxRow'); await Hook('Accounts', { Path: DefaultPath }); // RAMMIT has run once: there is a Config folder to keep await Hook('SlowUninstall', { Delay: 0.4 });