Commit 90b78fb
fix(table): improve sortable table accessibility (#1280)
* Improve a11y support for table sorting
* Remove extra classes; add column highlighting
* Add quick comment
* Fix missing ending tag
* aria-sort shouldn't always be set on every header
* Remove column highlighting on sort
* Port table.less changes to refactored styles
* test(table): add test for sortable table
* Have eslint apply to tests as well
* It's okay to have unused vars for array destructures
* Prettify table code + start more unit tests
* Changes for latest develop changes
* Unit tests for column indicators + aria-sort values
* Apparently DOM tests are async?
* Make unit tests + eslint happy by void'ing a promise
* update th button styling
* small tweak
* minor styling tweak
* Update test to check current and legacy markup
* lint
* Update test description to reflect legacy markup
* add comments
addresses #1280 (comment)
* Add scope attr to sortable examples
---------
Co-authored-by: Vlad Jimenez <[email protected]>
Co-authored-by: Giamir Buoncristiani <[email protected]>1 parent eb08145 commit 90b78fb
File tree
7 files changed
+566
-123
lines changed- docs
- _data
- product/components
- lib
- components/table
- test
7 files changed
+566
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | | - | |
| 751 | + | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
780 | 782 | | |
781 | | - | |
782 | | - | |
783 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
784 | 788 | | |
785 | | - | |
786 | | - | |
787 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
788 | 794 | | |
789 | 795 | | |
790 | 796 | | |
| |||
806 | 812 | | |
807 | 813 | | |
808 | 814 | | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
814 | 822 | | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
820 | 830 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
826 | 838 | | |
827 | 839 | | |
828 | 840 | | |
| |||
882 | 894 | | |
883 | 895 | | |
884 | 896 | | |
885 | | - | |
886 | | - | |
| 897 | + | |
| 898 | + | |
887 | 899 | | |
888 | 900 | | |
889 | 901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
129 | 144 | | |
130 | 145 | | |
131 | 146 | | |
| |||
0 commit comments