Skip to content

Commit

Permalink
fix: added specific class for toolbar-handler-button
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Jul 8, 2024
1 parent 2a96afd commit dcb4270
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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
8 changes: 4 additions & 4 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 @@ -755,7 +755,7 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {

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

0 comments on commit dcb4270

Please sign in to comment.