Skip to content

Commit c907892

Browse files
committed
fix: keep disabled mount actions visually disabled
1 parent 94ffb12 commit c907892

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

apps/desktop/src/dark-theme-ui.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ describe("dark theme UI contrast", () => {
2727
expect(styles).toMatch(/:root\[data-theme="dark"\] \.tray-popover\s*\{/);
2828
expect(styles).not.toMatch(/:root\[data-theme="dark"\] \.tray-live-mode-control,[\s\S]*?\.file-row\.expanded/s);
2929
});
30+
31+
it("keeps disabled mount detail buttons from taking hover colors", () => {
32+
expect(styles).toMatch(/\.mount-details-button:hover:not\(:disabled\)\s*\{/);
33+
expect(styles).toMatch(
34+
/:root\[data-theme="dark"\] \.mount-details-button:hover:not\(:disabled\),/,
35+
);
36+
});
3037
});

apps/desktop/src/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ button.home-stat:hover {
25122512
font-weight: 850;
25132513
}
25142514

2515-
.mount-details-button:hover {
2515+
.mount-details-button:hover:not(:disabled) {
25162516
border-color: rgba(8, 123, 114, 0.26);
25172517
background: rgba(248, 252, 251, 0.98);
25182518
color: var(--accent);
@@ -4188,7 +4188,7 @@ button.home-stat:hover {
41884188

41894189
:root[data-theme="dark"] .secondary-button:hover:not(:disabled),
41904190
:root[data-theme="dark"] .icon-button:hover:not(:disabled),
4191-
:root[data-theme="dark"] .mount-details-button:hover,
4191+
:root[data-theme="dark"] .mount-details-button:hover:not(:disabled),
41924192
:root[data-theme="dark"] .settings-activity-row:hover {
41934193
border-color: rgba(15, 118, 110, 0.38);
41944194
background: rgba(18, 39, 39, 0.94);

0 commit comments

Comments
 (0)