Skip to content

Commit 7186d72

Browse files
authored
fix(ui): sidebar css fixes (#7843)
1 parent ab61d45 commit 7186d72

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

packages/ui-components/Containers/Sidebar/SidebarGroup/index.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,25 @@ type SidebarGroupProps = {
1111
items: Array<Omit<ComponentProps<typeof SidebarItem>, 'as' | 'pathname'>>;
1212
as?: LinkLike;
1313
pathname?: string;
14+
className: string;
1415
showProgressionIcons?: boolean;
1516
};
1617

1718
const SidebarGroup: FC<SidebarGroupProps> = ({
1819
groupName,
1920
items,
2021
showProgressionIcons,
22+
className,
2123
...props
2224
}) => (
2325
<section
24-
className={classNames({
25-
[styles.group]: true,
26-
[styles.progression]: showProgressionIcons,
27-
})}
26+
className={classNames(
27+
{
28+
[styles.group]: true,
29+
[styles.progression]: showProgressionIcons,
30+
},
31+
className
32+
)}
2833
>
2934
<label className={styles.groupName}>{groupName}</label>
3035
<ul className={styles.itemList}>

packages/ui-components/Containers/Sidebar/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
dark:border-neutral-900
1818
dark:bg-neutral-950;
1919

20-
> section {
20+
.navigation {
2121
@apply hidden
2222
sm:flex;
2323
}
2424

25-
> span {
25+
.mobileSelect {
2626
@apply flex
2727
w-full
2828
sm:hidden;

packages/ui-components/Containers/Sidebar/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
4545
values={selectItems}
4646
defaultValue={currentItem?.value}
4747
onChange={onSelect}
48+
className={styles.mobileSelect}
4849
/>
4950
)}
5051

@@ -56,6 +57,7 @@ const SideBar: FC<PropsWithChildren<SidebarProps>> = ({
5657
pathname={pathname}
5758
as={as}
5859
showProgressionIcons={showProgressionIcons}
60+
className={styles.navigation}
5961
/>
6062
))}
6163
</aside>

0 commit comments

Comments
 (0)