Skip to content

Commit

Permalink
Merge pull request #29 from plone/fix-toolbar-state
Browse files Browse the repository at this point in the history
fix state icon position in toolbar when no permission
  • Loading branch information
vincentfretin authored Jul 9, 2020
2 parents e9be42f + b56dc02 commit b786ef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions news/29.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix review state icon position in toolbar when the user doesn't have the permission to change the review state.
This fixes https://github.com/plone/plonetheme.barceloneta/issues/110
[vincentfretin]
5 changes: 3 additions & 2 deletions plone/app/contentmenu/contentmenu.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
<a
href="#"
i18n:attributes="title;"
tal:attributes="href menuItem/action;
tal:attributes="href python:menuItem['action'] or 'javascript:void(0)';
style python:not menuItem['action'] and 'cursor: default;; pointer-events: none' or None;
title menuItem/description;
class string:label-${state_class}"
tal:define="state_class menuItem/extra/class | nothing;
state_class python:state_class and state_class or ''"
tal:omit-tag="not:menuItem/action">
>
<span
aria-hidden="true"
class=""
Expand Down

0 comments on commit b786ef8

Please sign in to comment.