Icon view from Object browser is missing logic to introduce disabled class
In pull request https://github.com/plone/volto/pull/6054 we received a new object browser view (Icon View)
In the list view which was the previous default if you had an image block on a non image such as a link content type
that item is displayed with a list tag with the class disabled.
See:
This is how the Icon view shows the link content type:
Adding the disabled class to the icon view list tag would make the listing look like:
@ichim-david I've identified a way to improve the Icon View in the object browser. We can add a 'disabled' class to non-image items, similar to how it's done in the List View. This would involve modifying the IconViewItem component to check the item type and apply the class accordingly. It's a small change that will enhance visual consistency across views. Would you like me to proceed with implementing this enhancement?
@KUNDAN1334 please read and follow First-time contributors, especially Things not to do, Contributing to Plone, and Contributing to Volto.
Also it is not necessary to use AI-generated text when making comments. It adds nothing to the discussion, repeating what has already been stated.
Hi There! 👋
We haven't seen any activity on this issue in a while :sleeping:, and we want to make sure that it's still relevant.
If updating to the latest version of Volto doesn't help, please let us know by:
- adding a comment about what needs to be done next 💬
- updating its status and other labels 🏷️
Otherwise close this issue. 🧹