Repository navigation
Conversation
Color the item title according to its workflow state using the Plone CSS variable --plone-state-<review_state>. Items are rendered with a state-<review_state> CSS class, and only non-published states receive a color so published items keep the default text color. Fixes #1664
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Color the item title according to its workflow state using the Plone CSS variable --plone-state-<review_state>. Items are rendered with a state-<review_state> CSS class, and only non-published states receive a color so published items keep the default text color.
Fixes #1664
If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.
Currently, in Plone 6, the pat-contentbrowser listing does not visually distinguish content items based on their review state (e.g., private, pending, published). When content editors and users browse and select items through the content browser, the lack of workflow state differentiation makes it harder to quickly identify the publication status of items, which can lead to usability friction.
I would like pat-contentbrowser to display visual indicators (such as color-coded text or workflow-specific CSS classes reflecting the standard Plone review states, similar to other listing views in Plone) to clearly distinguish items by their review state.
Closes #1664