Sort helper should return default value
emolayi opened this issue · 0 comments
emolayi commented
Using the following helper to set aria-sort
on a column results in accessibility issues because no default value is provided: https://github.com/fractaledmind/actionset/blob/master/lib/action_set/helpers/sort/current_direction_for_helper.rb
On page load, when sort param is not set, this method should return none
: https://www.w3.org/WAI/PF/aria/states_and_properties#aria-sort