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:
+4
-4
@@ -2132,8 +2132,8 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
|
||||
|
||||
.header-update-button.update-available {
|
||||
border-color: transparent;
|
||||
background: var(--accent);
|
||||
color: var(--accent-ink);
|
||||
background: var(--success);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.header-update-button::after {
|
||||
@@ -2173,8 +2173,8 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
|
||||
}
|
||||
|
||||
.header-update-button.update-available:hover {
|
||||
background: var(--accent-end);
|
||||
color: var(--accent-ink);
|
||||
background: var(--success-end);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.header-update-button:active {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user