Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Commit 06ede50

Browse files
authored
Merge pull request #357 from nestoralonso/patch-1
Prevent the sidenav icons from looking too much apart when the sidenav is collapsed and the user is using the expanded property
2 parents e7c3b2a + 565ce94 commit 06ede50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/visual-stack/src/components/SideNav/LinkGroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class LinkGroup extends React.Component {
2525
render() {
2626
const classes =
2727
`${this.props.className || ''} vs-sidenav-entry vs-sidenav-container` +
28-
(this.props.expanded ? ' expanded' : '');
28+
(this.props.expanded && !this.props.collapsed ? ' expanded' : '');
2929
const expandRow = () => {
3030
this.props.onClick(!this.props.expanded, this.props.label);
3131
if (this.props.expanded) {

0 commit comments

Comments
 (0)