Skip to content

mfDefaultSorter is failing with ANDI tool for 508 compliance #172

Description

@suryahanumandla

If you are not aware of 508 compliance. In short, a law that requires federal government websites to be safe and accessible for people with disabilities.

while validating with ANDI tool. I could see the following error

Keyboard Access Alerts:
warning element has no [href], [id], or [tabindex]; This might be a link that only works with a mouse.

I feel it would be better to change to any other element rather using anchor element and there is no use of it, correct me if I'm wrong.

@Component({
    selector: "mfDefaultSorter",
    template: `
        <a style="cursor: pointer" (click)="sort()" class="text-nowrap">
            <ng-content></ng-content>
            <span *ngIf="isSortedByMeAsc" class="glyphicon glyphicon-triangle-top" aria-hidden="true"></span>
            <span *ngIf="isSortedByMeDesc" class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span>
        </a>`
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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