Skip to content

Commit

Permalink
fix: state and styles for toolbar handler for hp
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Jun 26, 2024
1 parent a2f8d59 commit 2f9516f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/volto/src/components/manage/Toolbar/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ class Toolbar extends Component {
id: 'folderContents',
});
const { expanded } = this.state;
const isHomepage = path === '';

return (
this.props.token && (
Expand Down Expand Up @@ -624,6 +625,7 @@ class Toolbar extends Component {
messages.shrinkToolbar,
)}
className={cx({
homepage: isHomepage,
[this.props.content?.review_state]:
this.props.content?.review_state,
})}
Expand Down
5 changes: 5 additions & 0 deletions packages/volto/theme/themes/pastanaga/extras/toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
}

// State colors
.homepage:before {
background: @teal-blue;
}


.published:before {
background: @teal-blue;
}
Expand Down

0 comments on commit 2f9516f

Please sign in to comment.