Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The media browser currently hides the jQuery UI dialog title and close button. After a recent UI review by lea.refice, it was found that users expected a close button as seen in most lightboxes and the core overlay module. It was also found that the default "Select a file" title can be confusing if users are only able to upload a new file.
It was suggested that unhiding the dialog header and leaving the title and close button would be preferred. Themes are also required to include their own jQuery UI styling, so no additional styling changes should be necessary.
Comment | File | Size | Author |
---|---|---|---|
#1 | display-title-and-close-button-2182823-1.patch | 11.02 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedA patch to replace the form title with a dialog title and the fake-cancel buttons with a close button.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedRetested #1 on a few existing sites with Media installed and confirmed that the dialog title and close button was displayed and that the fake cancel buttons were removed.
The dialog title was styled plain-at-worst on most themes and looked great on theme's that included their own jQuery UI CSS. The removal of
$output['title']
generally feed up a lot of vertical space and helped with confusion when only tabs such as "upload" or "web" were enabled.Committed #1 to Media 7.x-2.x.
Comment #4
gettysburger CreditAttribution: gettysburger commentedI upgraded to Media 7.x-2.0-beta1 and when I go to upload an image I still do not see a title.
The code looks like this:
<span id="ui-id-1" class="ui-dialog-title"> </span>
Am I missing something? Thanks.
Comment #5
eelkeblokFWIW, I find that some users actually expect the Cancel button. Would it make sense to restore that in addition to the close button?
Comment #6
chicagomom CreditAttribution: chicagomom as a volunteer commentedUnderstand the cancel button removal, but I propose that the dialog title be re-added. Without it, there is no orientation/instructional content for the user. It's non-normative and as another poster mentioned, is a usability issue.
I propose re-adding these: