Problem/Motivation
I have https://www.drupal.org/project/media_library_edit module enabled on my site which adds a modal edit form for media.
When I hover over the close button, focus probably affected as well, I see an image sprite zoomed too far out.

Upon investigation there doesn't appear to be any rules in the dialog.css file that comes with claro for hover state on the close button
https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/themes/clar...
In the included theme.css file from jquery.ui there is an image sprite reference for hover state
https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/themes/clar...
I fixed this within my inspector by editing an .ui-dialog .ui-icon.ui-icon-closethick existing class
.ui-dialog .ui-button:hover .ui-icon.ui-icon-closethick,
.ui-dialog .ui-icon.ui-icon-closethick,
However, I am not sure if this is what the theme maintainer would want here.
Proposed resolution
Somehow override the image selection from jquery.ui with claro theme images for the close button with a hover state applied.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | Screenshot from 2025-07-21 15-54-25.png | 124.58 KB | sandip |
| #16 | 3335935-16-fix-close-button-display.patch | 481 bytes | _renify_ |
| #15 | Screenshot 2025-07-09 at 7.48.54 AM.png | 146.76 KB | _renify_ |
| #14 | Screenshot-of-working-media-library-edit-modal-in-claro-theme.png | 57.49 KB | niranjan_panem |
| #9 | interdiff_5-9.txt | 1.07 KB | trackleft2 |
Issue fork drupal-3335935
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
trackleft2Comment #3
trackleft2Comment #4
trackleft2Additional reference https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/assets/vend...
Comment #5
trackleft2Comment #6
joegraduateComment #7
gauravvvv commentedComment #8
j_s commentedPlease provide step-by-step instructions to reproduce this issue.
Comment #9
trackleft2Upon further testing, it appears that this is just a load order issue.
claro.drupal.dialog should not be loadable without its dependency claro.jquery.ui
Comment #11
joegraduateI think this needs to be
- claro/claro.jquery.uiComment #12
trackleft2The patches do not work for me to resolve the issue, even with @joegraduate' s suggestion.
Comment #14
niranjan_panem commentedChecked in drupal 11 claro theme, not able to reproduce the issue.

Below is the screen shot of edit-media library working as expected.
Comment #15
_renify_ commentedClose button does not display when background:none apply . I think we should remove this

Comment #16
_renify_ commentedComment #17
sandip commentedI am looking into it.
Comment #18
sandip commentedI tried to reproduce the issue by following the steps mentioned in Media Library Edit module's homepage. But the issue is not reproduceable After clicking the Edit Menu button the Modal appears and hovering on the close button of the modal no regression is occuring. I am attaching an image for better understanding.
Comment #22
sivaji_ganesh_jojodae commentedSee #3576668: [meta] Tasks to deprecate Claro.