question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Table] Sort arrows are not rendered properly in tabs

See original GitHub issue

Bug, feature request, or proposal:

BUG Plunker: https://plnkr.co/edit/Idc73Kn0ViLI4Qpsp98g?p=preview

When you set your sort by default as ASC or DESC like that:

@ViewChild(MatSort) mdSort: MatSort;

ngOnInit() {this.mdSort.start = 'desc';}

The arrow is just ugly ( 2 times on 3 ). If you click again on the sort icon, it’s pretty 😃

BTW: Under IE11 it’s always ugly. Same issue or not I don’t know

What is the current behavior?

image

What is the expected behavior?

image

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 4.4.3 OS: Windows 7 Pro 64 bits TS: 2.4.1 Material: 2.0.0-beta.11 Browser: Chrome V60

Is there anything else we should know?

Nothing #

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:37
  • Comments:52 (5 by maintainers)

github_iconTop GitHub Comments

96reactions
Barbierocommented, Mar 23, 2018

Hey,

While we wait for 6.0 to come out of beta, I’ve figured a workaround. I force the arrows to be transformed into the expected state on SCSS, so that they don’t look ugly when loading the table the first time. Any hover over the arrows will override this workaround, so the default behavior won’t be affected:

::ng-deep .mat-sort-header-arrow.ng-trigger.ng-trigger-arrowPosition {
    opacity: 0;
}

::ng-deep .mat-sort-header-pointer-left.ng-trigger.ng-trigger-leftPointer{
    transform: rotate(-45deg);
}
::ng-deep .mat-sort-header-pointer-right.ng-trigger.ng-trigger-rightPointer{
    transform: rotate(45deg);
}
14reactions
alexciesielskicommented, Jan 30, 2018

Still an issue on Angular 5.2.2 and Material 5.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Material Sortable Table -- Sorting arrows not showing ...
Everything works fine and the arrows show up even if there's no data in the table or anything configured for the sorting in...
Read more >
How to fix datatables sorting arrows not showing in header
You can enable F12 debugger , go to network tab, reload the page and see if there are any 401 errors ( not...
Read more >
content: "â†'"; in ordering arrows — DataTables forums
When things work correctly, I see that the <th> psuedo elements ::before and ::after are styled with thin arrow characters, for example content: ......
Read more >
Tabs | Components - BootstrapVue
To disable the card-body class, set the no-body prop on the <b-tab> sub component. ... of <li> and class nav-item for proper rendering...
Read more >
Format an Excel table - Microsoft Support
When you have a data range that is not formatted as a table, Excel will ... scroll through the table formats with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found