Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Nov 2018 at 12:40 UTC
Updated:
14 Mar 2019 at 01:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ilya.no commentedHi! Attaching initial patch.
Comment #3
Raman Starshykh commentedComment #4
Raman Starshykh commentedPatch serves the purpose as suggested.
I created several views blocks with paginations -
Result html code -
Comment #5
Raman Starshykh commentedComment #6
alexpottMarkup is not part of the API as per core's BC policy so this change is fine to make. Only going to make it in 8.7.x just in case people have CSS targeting this. It'll give them a chance to target something like
.pager h4. Also as a bug this should be fixed in stable.Comment #7
lauriiiIs there specific reason why this has been named specifically as
pagination_heading_id? How about renaming it toheading_id?We could also open a change record for the change so that people who have overridden the template, know they should apply this change to the overriding template.
Comment #8
marcvangend@ilya.no, thanks for the patch.
Re #7
No, not really. I guess I came up with it because it replaces the id that used to be "pagination-header". But by all means, change it to
heading_idif that's more consistent with the rest of our code.The change record sounds like a good idea.
Comment #9
pasan.gamage commentedHi,
Please see attached patch for reverting pagination_heading_id to heading_id
Change request on https://www.drupal.org/node/3018097
Thanks
Comment #10
pasan.gamage commentedComment #11
eric115 commentedHi Pasan, the change record will need to be about changing the css ID from "pagination-heading" to a unique ID, not about the variable name in this case.
Thanks for your work on this!
Comment #12
pasan.gamage commentedThank you @Eric115 for mentoring for this issue.
Comment #13
eric115 commentedThanks for updating the change record. The code looks good and is working as per #4.
Marking as RTBC!
Comment #15
lauriiiAdded a full stop after the variable documentation description (interdiff attached). Other than that this looks good. Thank you for creating the change record as well!
Committed 846024a and pushed to 8.7.x. Thanks!
Comment #17
xjmSince this fix required a change to our stable base themes, we'll list it in the release notes since it is a small BC break for themes.