Problem

The design of the remove button within the media modal does not conform to the design of the remove button established by the theme.

Steps to Reproduce

  • Install and set the theme as the Administration theme.
  • Ensure that a media & image field is present in the Content Type; if not, add both fields.
  • Add a media file in the media field while adding/editing the content.
  • Compare the design of the remove button with the image fields.

Remove btn design

Command icon 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

shweta__sharma created an issue. See original summary.

rinku jacob 13’s picture

StatusFileSize
new222.51 KB
new336.77 KB

Hi @shweta__sharma, Base theme of adminal theme is seven. so remove button color is inherited from seven theme.
do we need to follow any theme/design to style remove button?
for the example in claro theme they are used different style for remove button compared to other buttons. so can you please give any suggestion to style that.

shivamsen_12579 made their first commit to this issue’s fork.

Hritick made their first commit to this issue’s fork.

hritick’s picture

Issue summary: View changes
StatusFileSize
new160.51 KB

issue resolved image

I have fixed the issue and attached a screenshot as reference

aimadbachar’s picture

Hello,
The patch works and displays the button when adding media, thanks.

misterdidi’s picture

Status: Active » Needs review
kpap’s picture

Assigned: Unassigned » kpap
kpap’s picture

StatusFileSize
new351.05 KB
new351.27 KB

Previous changes seemed to not match adminimal's style guide.
Fixed it in my latest commit.

sdhruvi5142’s picture

StatusFileSize
new399.92 KB

Hi,

Without applying any patch on drupal 10.3, I don't see any color issue on Remove button, its color looks proper as per the theme. Adding screenshot for reference.

Please share steps if anyone is facing issue. This require further review so keeping this issue in Need Review.

Thanks

kanchan bhogade’s picture

StatusFileSize
new27.62 KB

Hi
I have tried to reproduce issue on Drupal 10.3.x with Adminimal theme version 8.x.1.x dev
but no color issue occurs remove button, button color already compatible..

Attaching screenshot for reference

esha_kundu’s picture

Assigned: kpap » Unassigned
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new286.89 KB
new289.59 KB
new290.09 KB
new290.79 KB

Hello,
I've reviewed the issue following the steps mentioned below:

  1. Installed theme version 8.x-1.7 in Drupal version 10.4.7.
  2. Set this theme as the Administration theme.
  3. Ensure that a media & image field is present in the Content Type; if not, add both the fields.
  4. On the add/edit page of a content, add a media file in the media field.
  5. A modal opens with a cross icon representing the remove button, which differs significantly from the remove button that appears for the image field in this theme.
  6. Applied the MR!13 cleanly.
  7. Repeated step 4 and found the button similar to that of the image field. The hover is also aligned with the buttons in this theme.

Attaching SS for reference. I am also updating the issue summary for improved clarity. Moving to RTBC.
Thanks

esha_kundu’s picture

Issue summary: View changes