mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-04 23:44:41 +00:00
fix(app): show selected workspace in light theme (#3922)
Co-authored-by: Will Daubney <16829568+wdaubney@users.noreply.github.com>
This commit is contained in:
co-authored by
Will Daubney
parent
f82886f284
commit
4e52125f5b
@@ -68,13 +68,16 @@ describe("Pure black theme", () => {
|
||||
});
|
||||
|
||||
describe("Sidebar interaction surfaces", () => {
|
||||
it.each([lightTheme, darkTheme])(
|
||||
"derives hover and selection from the surface scale",
|
||||
(theme) => {
|
||||
expect(theme.colors.surfaceSidebarHover).toBe(theme.colors.surface1);
|
||||
expect(theme.colors.surfaceSidebarSelected).toBe(theme.colors.surface2);
|
||||
},
|
||||
);
|
||||
it("keeps Light selection distinct from the sidebar surface", () => {
|
||||
expect(lightTheme.colors.surfaceSidebarHover).toBe(lightTheme.colors.surface1);
|
||||
expect(lightTheme.colors.surfaceSidebarSelected).toBe(lightTheme.colors.surface3);
|
||||
expect(lightTheme.colors.surfaceSidebarSelected).not.toBe(lightTheme.colors.surfaceSidebar);
|
||||
});
|
||||
|
||||
it("derives Dark hover and selection from the first two raised surfaces", () => {
|
||||
expect(darkTheme.colors.surfaceSidebarHover).toBe(darkTheme.colors.surface1);
|
||||
expect(darkTheme.colors.surfaceSidebarSelected).toBe(darkTheme.colors.surface2);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Built-in light theme", () => {
|
||||
|
||||
@@ -254,7 +254,7 @@ export function buildLightSemanticColors(tint: LightThemeConfig) {
|
||||
surfaceDiffEmpty: tint.surfaceDiffEmpty,
|
||||
surfaceSidebar: tint.surfaceSidebar,
|
||||
surfaceSidebarHover: tint.surface1,
|
||||
surfaceSidebarSelected: tint.surface2,
|
||||
surfaceSidebarSelected: tint.surface3,
|
||||
surfaceWorkspace: tint.surface0,
|
||||
interactionHighlight: "rgba(0, 0, 0, 0.06)",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user