Hey everyone,
After the update to the 3.0.5 version I noticed in my project that the status messages lost the "close" button. I checked the code and it seems the closing button is missing from the twig template found in templates/misc. Not sure if this is a bug or intentional
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | Issue-3424347-after.png | 228.39 KB | sandip |
| #13 | Issue-3424347-before.png | 212.09 KB | sandip |
| #9 | Issue.jpg | 192.99 KB | sandip |
| #2 | add_close_button-3424347-2.patch | 602 bytes | nsalves |
Issue fork bootstrap4-3424347
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 #2
nsalves commentedHere's a patch to add the missing button on twig based on what was previously available on 2.1.x
Comment #3
utkarsh_kumar_singh commentedI am working on it.
Comment #5
utkarsh_kumar_singh commentedAdd the closing button in the status messages. The patch file above mentioned was not working after apply, so I had to change the some code in css and js.
Comment #6
utkarsh_kumar_singh commentedI accidently pushed the some files those are not required. So I am assinging it to my self.
Comment #7
utkarsh_kumar_singh commentedComment #8
utkarsh_kumar_singh commentedSorry for my mistakes. Now the latest commit is final commit.
Comment #9
sandip commentedHi @utkarsh_kumar_singh,
Thank you for your contribution! I appreciate your efforts on this. However, I have a few doubts that I’d like to clarify:
In your MR, I noticed that you added custom JavaScript for closing the status message. This isn’t necessary, as applying the relevant patch should address the issue effectively.
The main concern I observed is that the status message block isn’t rendering from the status-messages.html.twig file provided in the theme. This needs to be fixed. Could you please work on this?
I’m updating the issue status to NW for now. Let me know if you need any assistance!
Comment #10
utkarsh_kumar_singh commentedThank You @sandip poddar for your suggestions. I am working on it.
Comment #11
sandip commentedFor your reference you can see this core issue queue https://www.drupal.org/project/drupal/issues/3456176#comment-15738200
Comment #12
utkarsh_kumar_singh commentedFixed the issue.
Comment #13
sandip commentedLGTM Thanks :)
I am attaching before and after ss for clarification.
Moving to RTBC++.
Comment #14
vladimirausThanks for your contribution. 🍻
Committed.