Skip to content

Commit

Permalink
fix: state and styles for toolbar handler for hp (#6126)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Jul 29, 2024
1 parent 2c53ebf commit 8530234
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/6126.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the toolbar handler color for the homepage to match its "published" state. @sabrina-bongiovanni
2 changes: 1 addition & 1 deletion packages/volto/src/components/manage/Toolbar/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ class Toolbar extends Component {
aria-label={this.props.intl.formatMessage(
messages.shrinkToolbar,
)}
className={cx({
className={cx('toolbar-handler-button', {
[this.props.content?.review_state]:
this.props.content?.review_state,
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Array [
>
<button
aria-label="Shrink toolbar"
className=""
className="toolbar-handler-button"
onClick={[Function]}
/>
</div>
Expand Down Expand Up @@ -377,7 +377,7 @@ Array [
>
<button
aria-label="Shrink toolbar"
className=""
className="toolbar-handler-button"
onClick={[Function]}
/>
</div>
Expand Down
13 changes: 10 additions & 3 deletions packages/volto/theme/themes/pastanaga/extras/toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
}

.toolbar-handler {
button {
.toolbar-handler-button {
opacity: 0.3;
}

Expand Down Expand Up @@ -243,7 +243,7 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
width: 100%;
justify-content: center;

button {
.toolbar-handler-button {
width: @toolbarWidth;
height: 20px;
padding: 0;
Expand Down Expand Up @@ -428,7 +428,7 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
flex-direction: column;
justify-content: center;

button {
.toolbar-handler-button {
width: @toolbarWidthMin;
height: @toolbarWidth;

Expand Down Expand Up @@ -752,3 +752,10 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
}
}
// End Orphaned CSS

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

0 comments on commit 8530234

Please sign in to comment.