Problem/Motivation

Drupal's dialog.ajax.es6.js copies form buttons, but leaves the original button with an overridden style in the modal content, see Drupal.behaviors.dialog.prepareDialogButtons()

Claro shows a blue pixel artefacts because of this css:

.button {
  border: 1px solid transparent !important;
}

Proposed resolution

Remove the blue pixel artefact in modal content.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

Modal content no longer shows a blue pixel artefact.

API changes

None.

Data model changes

None.

Comments

idebr created an issue. See original summary.

idebr’s picture

This issue can also be solved by applying the 'visually-hidden' class to the visually hide the buttons, see #3053690: dialog.es6.js uses inline CSS to apply visually-hidden

junaidmasoodi’s picture

Assigned: Unassigned » junaidmasoodi
junaidmasoodi’s picture

I am working on this over this weekend

huzooka’s picture

Project: Claro » Drupal core
Version: 8.x-1.x-dev » 8.9.x-dev
Component: Code » Claro theme
fhaeberle’s picture

Assigned: junaidmasoodi » Unassigned
Issue tags: +Novice, +DrupalCon Amsterdam 2019
chrisdarke’s picture

Issue tags: -Novice, -DrupalCon Amsterdam 2019 +Amsterdam2019

Updating tags for DrupalCon Amsterdam 2019

fhaeberle’s picture

Issue tags: -Amsterdam2019 +Novice, +DrupalCon Amsterdam 2019

Hello and thanks for the update. We're using the DrupalCon Amsterdam 2019 tag for our contribution. Setting it back.

jepster_’s picture

Assigned: Unassigned » jepster_
Status: Active » Needs work
chrisdarke’s picture

Issue tags: -Novice, -DrupalCon Amsterdam 2019 +Amsterdam2019

Hi @fhaeberle. the drupal #mentoring team are maintaining a curated set of novice issues for first time contribution sprints on Thursday, and we are tagging with Amsterdam2019, not the DrupalCon Amsterdam 2019 tag, also removing novice tag till thursday. Please give us a shout on the #mentoring channel on Slack if there are any issues with this, thanks!

jepster_’s picture

Cannot be reproduced with the current 8.9.x Git branch.

What have I did?

  1. Enabled Claro
  2. Enabled media library
  3. Added a media reference field
  4. Selected the media library in the form display
  5. Tried to reproduce the artifact in the media library modal
  6. Could not see any artifact

See attached screenshots.

If you are able to reproduce the issue, please provide details about the form display settings, so it is exactly clear which form widget you have been using.

jepster_’s picture

Assigned: jepster_ » Unassigned
Status: Needs work » Needs review
idebr’s picture