angular / angular/components

feat(table): Show sort icon by default

オープン
#30,563 コメント 6 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: material/sort feature P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### Feature Description

When a table column or multiple columns have a sorting option, it is not visually obvious until you accidentally or intentionally hover over the column header. This behavior is not intuitive, as shown in the screenshot and example:

![Image](https://github.com/user-attachments/assets/e31814af-92d7-4c13-aa54-e1fc494bb495)
https://material.angular.io/components/table/examples#table-sorting

**So, the proposal is to add an option to make the sort icons visible by default, as shown in the examples:**

_Example 1:_

![Image](https://github.com/user-attachments/assets/a661d33e-19fe-49e5-84c1-53188ca0ee7e)

_[Example 2](https://primeng.org/table#sort):_

![Image](https://github.com/user-attachments/assets/5a25c128-65a2-4d81-a73c-25448aa7a1c2)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Material table sorting example とリンク先の PrimeNG table sorting example を比較して、要求されているデフォルトのアイコン動作を理解します。テーブルのソート実装を追跡し、ソートアイコンを常に表示できるようにするオプションをどのように公開すべきかを判断します。ソート可能な列がホバーなしでアイコンを表示でき、既存のソート動作が変更されない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。