Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Discovered by @lauriii while reviewing #3259929: Olivero: Refactor dropbutton CSS to make use of modern CSS.
If a dropbutton is placed near the bottom of the content area and then opened, Olivero's footer will cover the bottom of the dropdown.
To reproduce
- Set Olivero as an admin theme (note this isn't supported, but its the easiest way to reproduce)
- Visit
/admin/structure/taxonomy
and open the bottom-most dropbutton
Comment | File | Size | Author |
---|---|---|---|
#11 | After patch TD.png | 93.87 KB | Aamir M |
#11 | Before patch TD.png | 82.45 KB | Aamir M |
#7 | 3302052-Olivero-footer-can-obscure-bottom-of-dropbutton-dropdown-7.patch | 917 bytes | Sakthivel M |
#5 | After patch BD.png | 88.16 KB | Aamir M |
#5 | Before patch BD.png | 84.78 KB | Aamir M |
Comments
Comment #2
mherchelComment #3
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commented#3 Please review the patch
Comment #4
Aamir M CreditAttribution: Aamir M at QED42 for Drupal India Association commentedComment #5
Aamir M CreditAttribution: Aamir M at QED42 for Drupal India Association commentedVerified and tested patch #3 on Drupal 9.5.x-dev. Patch applied successfully and looks good to me.
Testing steps:
1. Goto admin/Appearance
2. Set Olivero theme in the Administration theme (Scroll down and see)
3. Save configuration
4. Go to Structure>Taxonomy
5. Clock on drop down in front of Tags
6. Observe bottom of the dropdown is obscure
7. Apply the patch
8. Reload the page. (Note: Clear all caches if required)
9. Now observe the bottom of the dropdown is clearly visible
Testing Result:
1. After applying the patch the bottom of the dropdown is clearly visible
Can be moved to RTBC
Comment #6
mherchelThanks for the patch and review! It looks (almost) perfect, with one minor nitpick:
Can you add a comment after the z-index change? Something like
/* Ensure dropdown is not cut off by footer. */
This will make sure we properly test this in the future if there are any changes 😀
Comment #7
Sakthivel M CreditAttribution: Sakthivel M at QED42 for Drupal India Association commented@mherchel thank you for the suggestions, #7 Please verify the patch
Comment #8
amin.ankitComment #9
amin.ankitComment #10
Aamir M CreditAttribution: Aamir M at QED42 for Drupal India Association commentedComment #11
Aamir M CreditAttribution: Aamir M at QED42 for Drupal India Association commentedVerified and tested patch #7 on Drupal 9.5.x-dev. Patch applied successfully and looks good to me.
As per @mherchel's previous comment the /* Ensure dropdown is not cut off by footer. */ also added after z-index
Testing Result:
1. After applying the patch the bottom of the dropdown is clearly visible
Screenshots are attached for the reference
Hence moved to RTBC
Comment #15
lauriiiCommitted b78d6dc and pushed to 10.1.x. Also cherry-picked to 10.0.x and 9.5.x. Thanks!
Comment #17
masipila CreditAttribution: masipila as a volunteer commentedThe way we force .layout-main-wrapper to have higher z-index than .site-footer causes problems for modal dialogs placed in the footer. I opened a new issue to figure out a solution for this, see #3368930: z-index of .layout-main-wrapper causes problems with Cookies modal dialog placed inside .site-footer.
The purpose of this comment here is NOT to re-open this old issue which has already been committed, but to catch the attention of the community members that contributed here so that you can chime in to #3368930.
Cheers,
Markus