Skip to content

Commit

Permalink
fix: Sidebar - Missing subcomponents (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Oct 5, 2020
1 parent 9fa3bf0 commit 9ccb237
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Sidebar/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Subtitle = ({ className, ...props }) => <div className={`rc-box rcx-box--f

const Wrapper = ({ className, ...props }) => <div className={`rc-box rcx-box--full rcx-sidebar-item__wrapper ${ className }`} {...props}/>;

const Icon = (props) => <FuselageIcon w='x12' mi='x4' size='x16' {...props} />;
const Icon = ({ children, ...props }) => <div className='rc-box rcx-box--full rcx-sidebar-item__icon' {...props}>{ children || <FuselageIcon size='x16' {...props} />}</div>;

const Avatar = (props) => <Container><div className='rc-box rcx-box--full rcx-sidebar-item__avatar' {...props}/></Container>;

Expand Down
16 changes: 12 additions & 4 deletions packages/fuselage/src/components/Sidebar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr
&__avatar {
flex: 0 0 auto;

margin-block: lengths.padding(4);
margin-inline: lengths.margin(4);
@include typography.use-with-truncated-text();
}

Expand All @@ -101,6 +101,15 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr
flex: 0 0 auto;
}

&__icon {
@include typography.use-with-truncated-text();
display: flex;
justify-content: center;

width: lengths.size(12);
margin-inline: lengths.margin(4);
}

&__content {
@include typography.use-with-truncated-text();
flex-wrap: wrap;
Expand All @@ -114,17 +123,16 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr
display: block;
flex: 1 1 1%;

margin-inline: lengths.padding(4);
margin-inline: lengths.margin(4);
}

&__subtitle {
@include typography.use-font-scale(c1);
margin-inline: lengths.padding(8);
}

&__time {
@include typography.use-font-scale(micro);
margin-inline: lengths.padding(8);
margin-inline: lengths.margin(8);
}

&__wrapper {
Expand Down

0 comments on commit 9ccb237

Please sign in to comment.