Skip to content

Commit

Permalink
fix issues with isa
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Nov 7, 2024
1 parent 58ad1d4 commit 6440ea7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FC, FunctionComponentElement } from 'react';
import React from 'react';
import type { AriaBreadcrumbsProps } from 'react-aria';
import { useBreadcrumbs } from 'react-aria';
import { Box } from '..';
import { Box, Text } from '..';
import { containerClass, navClass } from './Breadcrumbs.css';
import type { IBreadcrumbItemProps } from './BreadcrumbsItem';

Expand All @@ -22,7 +22,11 @@ export const Breadcrumbs: FC<IBreadcrumbsProps> = ({

return (
<nav className={navClass} {...navProps}>
{icon && <Box marginInline="sm">{icon}</Box>}
{icon && (
<Box marginInline="sm">
<Text>{icon}</Text>
</Box>
)}
<ol className={containerClass}>
{React.Children.map(breadcrumbProps.children, (child, i) =>
React.cloneElement(child as any, { isCurrent: i === childCount - 1 }),
Expand Down
12 changes: 11 additions & 1 deletion packages/libs/kode-ui/src/patterns/SideBarLayout/sidebar.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export const listClass = recipe({
direction: {
horizontal: {
flexDirection: 'row',
alignItems: 'center',
},
vertical: {
flexDirection: 'column',
Expand Down Expand Up @@ -186,13 +187,14 @@ export const sidebartreeItemClass = recipe({
borderRadius: token('spacing.sm'),
textDecoration: 'none',
fontSize: token('typography.fontSize.sm'),
fontWeight: token('typography.weight.primaryFont.semiBold'),
paddingBlock: token('spacing.sm'),
cursor: 'pointer',

selectors: {
'&:hover': {
backgroundColor: token('color.background.base.@active'),
opacity: '.8',
color: token('color.text.base.@hover'),
},
},
},
Expand All @@ -213,6 +215,11 @@ export const sidebartreeItemClass = recipe({
},
false: {
color: token('color.text.gray.bolder'),
selector: {
'&:hover': {
color: token('color.text.base.@hover'),
},
},
},
},
},
Expand All @@ -226,6 +233,9 @@ globalStyle(`${sidebartreeItemClass()}[data-isactive="false"] svg`, {
color: token('color.text.gray.bolder'),
width: '12px',
});
globalStyle(`${sidebartreeItemClass()}[data-isactive="false"]:hover svg`, {
color: token('color.text.base.@hover'),
});

export const listItemInlineClass = style([
atoms({
Expand Down

0 comments on commit 6440ea7

Please sign in to comment.