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
- Write a patch
- Review
- Commit
User interface changes
Modal content no longer shows a blue pixel artefact.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | Bildschirmfoto 2019-10-29 um 13.08.55.png | 356.17 KB | jepster_ |
| #11 | Bildschirmfoto 2019-10-29 um 13.09.39.png | 610.25 KB | jepster_ |
| button-pixel-artifact.gif | 830.84 KB | idebr |
Comments
Comment #2
idebr commentedThis 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
Comment #3
junaidmasoodi commentedComment #4
junaidmasoodi commentedI am working on this over this weekend
Comment #5
huzookaComment #6
fhaeberleComment #7
chrisdarke commentedUpdating tags for DrupalCon Amsterdam 2019
Comment #8
fhaeberleHello and thanks for the update. We're using the DrupalCon Amsterdam 2019 tag for our contribution. Setting it back.
Comment #9
jepster_Comment #10
chrisdarke commentedHi @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!
Comment #11
jepster_Cannot be reproduced with the current 8.9.x Git branch.
What have I did?
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.
Comment #12
jepster_Comment #13
idebr commentedThis was fixed in #3037781: Accessibility problem with invisible buttons in AJAX dialogs