Skip to content

Sort helper should return default value #60

@emolayi

Description

@emolayi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions