Skip to content

Commit

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

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

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

.published:before {
background: @teal-blue;
}
Expand Down Expand Up @@ -756,3 +752,10 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
}
}
// End Orphaned CSS

// Toolbar handler color in homepage
.contenttype-plone-site {
#toolbar .toolbar .toolbar-handler button:before {
background: @teal-blue;
}
}

0 comments on commit 2a96afd

Please sign in to comment.