A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear Sidem_569,
Welcome to the community! Thanks for sharing your JSON and the context.
Based on your description, I see that you've put a lot of thought into customizing your SharePoint list view formatting. According to my research, SharePoint JSON formatting doesn't support CSS pseudo-classes like hover, which makes it tricky to show elements like a "Delete" button when hovering over the entire row or card.
Workaround:
According to my research, you can try a hidden context variable "isSelected" and less documented "isRowHovered", though the latter is not officially supported and may not always behave consistently.
Disclaimer: This approach depends on undocumented behavior, and Microsoft can change it without notice. Still, in practice, "isRowHovered" has worked for many users. For reference: https://www.lidorsystems.com/support/articles/angular/treegrid/tree-grid-buttons-on-row-hover/
To get the most targeted help, I recommend posting this in the SharePoint forum, which is specifically focused on JSON formatting, view customization, and UI behavior. You'll find experts there who can offer deeper insights and potential workarounds tailored to your scenario. Here’s the link to the SharePoint forum: SharePoint | Microsoft Community Hub
Additionally, you can ask about it in Microsoft Q&A for Microsoft SharePoint, and other users or Microsoft experts might provide insights or workarounds. SharePoint - Microsoft Q&A. Please rest assured I'll be following your thread too, you're not alone. I will continue to learn and support you so that we can find a solution together. Since I don't have enough resources to support further on this program code, I'll leave that question open in case one of our amazing volunteers has ideas for you.
I truly apologize that as forum moderator; I don’t have access to the backend systems and enough resource to troubleshoot this effectively due to privacy and security constraints. I am just organizing use cases and collecting data, including from you, on a daily basis and will continue to monitor the progress of this issue.
I hope this information is helpful. If you have any difficulties or further questions, feel free to reach out, and we can further investigate the problem together. Please understand that our initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
If my answer is helpful, please mark it as an answer, which will definitely help others in the community who have similar queries to find solutions to their problems faster.
Thanks for your patience and understanding so far. Looking forward to hearing from you.
Best Regards,
Vivian - MSFT | Microsoft Community Support Specialist