Closed (fixed)
Project:
Seven
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2025 at 21:03 UTC
Updated:
20 Nov 2025 at 12:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sourabhsisodia_ commentedComment #3
avpadernoI am resetting the Assigned field, since the assigned person has not posted any update in the past 10 days.
Comment #4
santanu mondal commented@avpaderno
✅ Tested on Drupal 10.2 with Seven and Claro.
The li and a elements already have the expected classes:
media-library-menu__item
media-library-menu__link
I was unable to reproduce the issue.
It seems resolved — possibly can be closed or marked as fixed.
Comment #5
avpadernoAssuming that
.media-library-menu liis supposed to be replaced bymedia-library-menu__item, the issue is not yet resolved, since:.media-library-menu liare not used bymedia-library-menu__item.media-library-menu liis still inside the css/theme/media-library.css fileI am not convinced the assumption is correct, though.
Comment #6
santanu mondal commentedWorking On It.
Comment #8
santanu mondal commentedHi @avpaderno I have update this please check.
Comment #9
santanu mondal commentedComment #10
avpadernoComment #11
avpadernoReading #3029227: Allow setting attributes to li element from render array for links.html.twig, I cannot understand on which page the CSS selector changed in this merge request appears. That issue is referenced by #3020716: Add vertical tabs style menu to media library, which could give an hint about which page should be checked, but I am not able to understand that.
Comment #12
santanu mondal commented“The .media-library-menu__item class appears in the Media Library modal when adding or selecting media in a content form (e.g., Article → Image field using Media Library widget).
The tabs at the top of the modal (Document, Image, Video, Remote video) are
Example screenshot attached or see inspect element in the modal.”
Comment #13
avpadernoI guess screenshots showing the page and the markup used in that page are necessary. On the dialog box used to select a media from the media library, I cannot see any class whose name starts with media-library-menu. There are many classes whose name starts with media-library-item.
Comment #14
santanu mondal commentedi am talking about the UL class="js-media-library-menu media-library-menu" and
li with class="media-library-menu-document media-library-menu__item"
Comment #15
avpadernoThank you!
I will update the issue summary to make clear how to find that page. It requires a content type where the media is added via the media library, where more than a media type is allowed. I enabled a single media type, and that is why I was not seeing any element using that CSS selector.
I can confirm the changes in the merge request are correct. I did not change status, since I need to update the issue summary.
Comment #16
avpadernoComment #17
avpadernoComment #19
avpaderno