Allow table sort indicator output markup for inactive sort link

Created on 14 January 2019, almost 6 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

The current implementation of the table sort indicator assumes the element is only visible when the table column is used for sorting. However, some themes might want to provide an icon for sortable table columns that are inactive.

Proposed resolution

Introduce a new 'inactive' option for the 'style' variable in table sort indicator template.

Remaining tasks

  • Provide patch
  • Create change record

API changes

In tablesort_indicator template, 'style' variable will be populated with 'inactive' string besides 'asc' and 'desc'.

Feature request
Status

Needs work

Version

10.1

Component
Theme 

Last updated about 11 hours ago

Created by

🇭🇺Hungary huzooka Hungary 🇭🇺🇪🇺

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

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.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024