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.
As per issue title. The whole div with class="download-modernizr"
+ the paragraph that follows it are repeated twice (once above and once below the modernizr-tests
section) on the 'Rebuild Modernizr' tab (under ../admin/config/development/modernizr
).
Or is this intentional for some reason?
Comments
Comment #1
klonosComment #2
ruplGood question. Yes, it's intentional for cases where someone has a very long list of Modernizr tests and/or utilities. I thought maybe someone will review their list line by line, and the button is there at the bottom when they finish.
The two buttons (and descriptions) are generated by one piece of code, but I just add it twice to the render array.
Marking this "works as designed" because that is true, but I don't mean to halt the conversation. If there is a problem with it, or you can envision a better way to do this, I'm open to some discussion!
Comment #3
klonosI thought it must be intentional, just wanted to make sure. No big issue there (that's why I set the issue priority to 'minor' when I filed it after all). Still, not perfect and my OCD kicks in :P
Some modules like module_filter solve similar problems with long lists by having the respective form submit/save button be sticky at the bottom or top of the page as you scroll ("stickiness" enabled only if page height is longer than view and scrollbars start to show).