fix: highlight available updates in green

Use the success palette and black text for the available-update header action, including its hover state. Add regression coverage for the visual state.
This commit is contained in:
Sucukdeluxe
2026-08-20 13:47:42 +02:00
parent ff1593be81
commit e18c629741
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -166,4 +166,6 @@ test('header occupies its final geometry before asynchronous initialization', ()
assert.doesNotMatch(mainSource, /runAutomaticUpdateCheck\(true\);\s*\},\s*3000\)/u);
assert.match(html, /class="upload-speed-baseline"/u);
assert.match(css, /\.upload-speed-baseline\s*\{[^}]*background:\s*var\(--success\);/su);
assert.match(css, /\.header-update-button\.update-available\s*\{[^}]*background:\s*var\(--success\);[^}]*color:\s*#000;/su);
assert.match(css, /\.header-update-button\.update-available:hover\s*\{[^}]*background:\s*var\(--success-end\);[^}]*color:\s*#000;/su);
});