The cell.active_table_sort in table.html.twig has no effect

Created on 27 October 2014, over 10 years ago
Updated 20 April 2024, about 1 year ago

Problem/Motivation

While reviewing #1821454: [theme_table] 'active' class added to wrong column โ†’ , I detected that the twig variable cell.active_table_sort used in table.html.twig is affected by a combination of defects:

  • The active class is set by tablesort_header().
  • The cell.active_table_sort twig variable is never set for header cells. However, in the twig template it is only ever checked when processing the header section (for cell in header).
  • In contrast the cell.active_table_sort is set for cells in rows and footer, but in the twig template it is never checked when processing rows or footer section

Proposed resolution

Either remove cell.active_table_sort or fix it.

Remaining tasks

User interface changes

API changes

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Themeย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡จ๐Ÿ‡ญSwitzerland znerol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024