Compare commits

...

1 Commits

Author SHA1 Message Date
Brian McGee
30edcacce5 feat(ui): reduce opacity of sidebar pane content when not editing 2025-07-24 10:01:08 +01:00
2 changed files with 7 additions and 2 deletions

View File

@@ -10,6 +10,10 @@ div.sidebar-section {
} }
& > div.content { & > div.content {
@apply w-full h-full px-1.5 py-3 rounded-md bg-inv-4; @apply w-full h-full px-1.5 py-3 rounded-md bg-inv-4 opacity-60;
}
&.editing > div.content {
@apply opacity-100;
} }
} }

View File

@@ -3,6 +3,7 @@ import "./SidebarSection.css";
import { Typography } from "@/src/components/Typography/Typography"; import { Typography } from "@/src/components/Typography/Typography";
import { Button as KButton } from "@kobalte/core/button"; import { Button as KButton } from "@kobalte/core/button";
import Icon from "../Icon/Icon"; import Icon from "../Icon/Icon";
import cx from "classnames";
export interface SidebarSectionProps { export interface SidebarSectionProps {
title: string; title: string;
@@ -20,7 +21,7 @@ export const SidebarSection = (props: SidebarSectionProps) => {
}; };
return ( return (
<div class="sidebar-section"> <div class={cx("sidebar-section", { editing: editing() })}>
<div class="header"> <div class="header">
<Typography <Typography
hierarchy="label" hierarchy="label"