Problem/Motivation
- The Cancel button isn't being moved to the correct location when a delete form is opened in a modal dialog.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | AWS_Cloud_instances___Cloud_Orchestrator.png | 327.29 KB | baldwinlouie |
Issue fork rigel-3437940
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 #3
baldwinlouie commented@yas, please review this patch. This fix moves the Cancel button into the correct location in a modal. It turns out the following code removes the necessary css class that the Dialog JS needs to move the button into the lower right hand corner.
$form['actions']['cancel']['#attributes']['class']['0'] = '';I also changed the color of the Cancel button. Best practice says the the cancel button should be a different color than the main "Delete" button. That way, the user can easily distinguish between the two.
What do you think about the color change.
Comment #4
yas@baldwinlouie
Thank you for the fix. I tried the patch and it looks perfect. I'll merge the patch to
6.xand7.x; and close this issue as Fixed.Comment #6
yas.
Comment #8
yas