Skip to content

Commit

Permalink
- Sidebar menu is now closer to content below it, than the content ab…
Browse files Browse the repository at this point in the history
…ove it.

- Remove custom styling of heading, just using overline variant.
  • Loading branch information
mattias800 committed Sep 7, 2023
1 parent a4d445d commit af70485
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.

This file was deleted.

28 changes: 7 additions & 21 deletions packages/panels/src/components/sidebar-menu/SidebarMenuHeading.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Box, Text, TextProps } from "@stenajs-webui/core";
import { Box, Space, Text, TextProps } from "@stenajs-webui/core";
import * as React from "react";
import styles from "./SidebarMenuHeading.module.css";
import {
CollapsibleContent,
CollapsibleSimpleContentProps,
} from "../collapsible/CollapsibleContent";
import { CollapsibleSimpleContentProps } from "../collapsible/CollapsibleContent";

export interface SidebarMenuHeadingProps
extends Pick<CollapsibleSimpleContentProps, "contentLeft" | "contentRight">,
Expand All @@ -20,21 +16,11 @@ export const SidebarMenuHeading: React.FC<SidebarMenuHeadingProps> = ({
...textProps
}) => {
return (
<Box indent={2} spacing={1}>
<CollapsibleContent
className={styles.sidebarMenuHeading}
contentLeft={contentLeft}
contentRight={contentRight}
>
<Text
variant={"overline"}
color={"var(--swui-sidebar-menu-heading-text-color)"}
size={"smaller"}
{...textProps}
>
{label}
</Text>
</CollapsibleContent>
<Box height={"32px"} justifyContent={"center"} indent={2}>
<Space />
<Text variant={"overline"} size={"smaller"} {...textProps}>
{label}
</Text>
</Box>
);
};

0 comments on commit af70485

Please sign in to comment.