The datatables.libraries.yml file references the css file /libraries/datatables/media/css/demo_tables.css which does not exist in version 1.10.x of the datatables library. Therefore certain elements are not styled as they should. For instance, when choosing column sorting options in Views, the sorting icons are not displayed, making it impossible to sort.

I believe the file that should be referenced instead is /libraries/datatables/media/css/jquery.dataTables.css. When this is used the sorting icons are displayed, and sorting works as expected.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bagz created an issue. See original summary.

Bagz’s picture

Bagz’s picture

Issue summary: View changes
Bagz’s picture

Version: 8.x-1.x-dev » 8.x-1.0-rc1
Bagz’s picture

Updated patch file to reference file in modules/contrib folder.

Bagz’s picture

Bagz’s picture

FileSize
546 bytes

Updated patch file to reference file in modules/contrib folder.

Bagz’s picture

FileSize
438 bytes

Updated patch file to reference file in module folder.

dqd’s picture

Version: 8.x-1.0-rc1 » 8.x-1.x-dev
Status: Patch (to be ported) » Needs review
dqd’s picture

~/datatables (8.x-1.x)
$ git apply -v datatables-fix-css-2906064-8.patch
Checking patch datatables.libraries.yml...
Applied patch datatables.libraries.yml cleanly.

  • diqidoq committed 3529807 on 8.x-1.x authored by Bagz
    Issue #2906064 by Bagz, Digidog: Incorrect css reference in libraries....
dqd’s picture

Status: Needs review » Fixed
Issue tags: -CSS

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.