- Issue created by @bnjmnm
- last update
over 1 year ago 29,397 pass - @bnjmnm opened merge request.
- Status changed to Needs review
over 1 year ago 10:24pm 23 May 2023 - Status changed to RTBC
over 1 year ago 11:36pm 29 May 2023 - last update
over 1 year ago 29,401 pass - last update
over 1 year ago 29,402 pass 57:41 53:58 Running- last update
over 1 year ago 29,413 pass, 1 fail - last update
over 1 year ago 29,417 pass - last update
over 1 year ago 29,436 pass - last update
over 1 year ago 29,437 pass - last update
over 1 year ago 29,444 pass - last update
over 1 year ago 29,450 pass - last update
over 1 year ago 29,486 pass - last update
over 1 year ago 29,499 pass - last update
over 1 year ago 29,505 pass - last update
over 1 year ago 29,551 pass - last update
over 1 year ago 29,553 pass - last update
over 1 year ago 29,559 pass - last update
over 1 year ago 29,567 pass - last update
over 1 year ago 29,571 pass - Status changed to Needs review
over 1 year ago 2:21pm 3 July 2023 - Status changed to Needs work
over 1 year ago 12:19pm 5 July 2023 - 🇺🇸United States smustgrave
So searching for sticky-enabled and found just a few instances
But this one stood out
once('tableheader', $(e.data.context).find('table.sticky-enabled')).forEach( (table) => { TableHeader.tables.push(new TableHeader(table)); }, );
If we are moving claro away from this should we deprecate this code?
- last update
over 1 year ago 29,805 pass - Status changed to RTBC
over 1 year ago 7:47pm 10 July 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
Answered the threads in the MR (Claro does not have any use of the
sticky-enabled
class beyond the addition that I removed). I also created a followup issue to apply this solution to all of core and deprecate tableheader.js: 📌 consider deprecating tableheader.js in favor of css position:sticky Active . I'd like to keep the scope of this issue to Claro as it's a quick way to bring these benefits to the default admin theme, then we can apply it more broadly in the followup. The followup is where anything brought up in #7 would be addressed.The only change made to the MR was reverting a template move in umami, so I'm switching this back to RTBC.
- Status changed to Needs work
over 1 year ago 7:05am 11 July 2023 - last update
over 1 year ago 29,808 pass - Status changed to Needs review
over 1 year ago 12:53pm 11 July 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
Responded to feedback, Claro now also replaces the
sticky-enabled
class in a preRender, and there is test coverage for it. - Status changed to RTBC
over 1 year ago 4:08pm 13 July 2023 - 🇺🇸United States smustgrave
per #8 my initial issue was out of scope of this ticket. In scope of just claro believe the MR covers it. All threads resolved.
- last update
over 1 year ago 29,812 pass - Status changed to Fixed
over 1 year ago 5:21pm 13 July 2023 - 🇫🇮Finland lauriii Finland
Made a minor docs adjustment on commit:
diff --git a/core/themes/claro/src/ClaroPreRender.php b/core/themes/claro/src/ClaroPreRender.php index 985e3482d7..e18d0906c9 100644 --- a/core/themes/claro/src/ClaroPreRender.php +++ b/core/themes/claro/src/ClaroPreRender.php @@ -189,6 +189,9 @@ public static function messagePlaceholder(array $element) { return $element; } + /** + * Prerender callback for table elements. + */ public static function tablePositionSticky(array $element) { if (isset($element['#attributes']['class']) && in_array('sticky-enabled', $element['#attributes']['class'])) { unset($element['#attributes']['class'][array_search('sticky-enabled', $element['#attributes']['class'])]);
Committed 3950243 and pushed to 11.x. Thanks!
Should we open a follow-up issue to move to
position: sticky
elsewhere and to deprecateDrupal.TableHeader
? Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
7 months ago 8:32am 9 April 2024 - 🇮🇳India dipakmdhrm
Follow up issue to deprecate
drupal.tableheader
https://www.drupal.org/project/drupal/issues/3439580 📌 Make drupal.tableheader only use CSS for sticky table headers Needs review