-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 - Table
sort icons in table header are reversed
#9884
Comments
That would be breaking change :( It works right by default showing proper icons because the icons are also reversed. We can fix the default but if you overridden them in your app — this fix would break it for you. Or can this be considered a bugfix and not a breaking change? |
It is a bug and should be treated as such. You can clearly see in the "Editable" and "With tuiSortBy directive" demos that the sorting icons are reversed. |
Oh snap, you are correct, other libs have it the other way around. That's weird, I would expect chevron to show the direction of increasing value as I look through the table from top to bottom. Our proprietary icons look differently and it's clear what they mean :) Would you make a PR changing TH directive to switch the icons? |
Do I only need to fix the TH directive itself or are there some tests that I need to update too? [Should there be some extra tests for this?] |
Just the TH, screenshots will fail and that would be expected. |
Reproduction url
https://taiga-ui.dev/components/table
Description
If you check
th
directive source code, you'll see that the sort icons are reversed:taiga-ui/projects/addon-table/components/table/th/th.component.ts
Line 73 in 76d8d01
direction === 1
meansascending
order and-1
meansdescending
order, but the code is the opposite way:Taiga UI version
4.17.0
Browser Used
Chrome
OS Used
Windows
The text was updated successfully, but these errors were encountered: