Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use actions-sort-* icons for table sorting and use accessible elements (button/a) in sorting triggers. Resolves: #101881 Releases: main, 12.4 Change-Id: Ie6de4500bf3819ea2c9b260456d05d9baee35f23 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80949 Reviewed-by: Benjamin Franzke <ben@bnf.dev> Tested-by: Benjamin Franzke <ben@bnf.dev> Tested-by: core-ci <typo3@b13.com>
- Loading branch information
1 parent
8cc9ba2
commit 9e5bde8
Showing
10 changed files
with
183 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,6 @@ | |
// | ||
@import "libs/sortable"; | ||
|
||
// | ||
// tablesort.js | ||
// | ||
@import "libs/tablesort"; | ||
|
||
// | ||
// NProgress | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
interface Tablesort { | ||
} | ||
|
||
type TablesortOptions = { | ||
export type TablesortOptions = { | ||
descending: boolean; | ||
sortAttribute: string; | ||
}; | ||
|
||
declare const Tablesort: { | ||
new(table: Element, options?: {[key: string]: TablesortOptions}): Tablesort; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
extend(name: string, pattern: Function, sort: Function): void; | ||
} | ||
export default class Tablesort { | ||
protected table: HTMLTableElement; | ||
protected thead: boolean; | ||
protected options: TablesortOptions; | ||
protected current: HTMLTableCellElement; | ||
|
||
declare module 'tablesort' { | ||
export default Tablesort; | ||
constructor(table: HTMLElement, options?: {[key: string]: TablesortOptions}); | ||
protected sortTable(table: HTMLTableCellElement): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.