Skip to content

Use <output> instead of the "status" role to ensure accessibility across all devices. #3823

@lavanyayadawad30-lab

Description

@lavanyayadawad30-lab

The UserCardSkeleton component uses role="status" on a generic

element, even though a semantic HTML tag () exists for this purpose.

This triggers Sonar rule typescript:S6819 and is reported as a major code smell affecting accessibility and maintainability.

File: frontend/src/components/skeletons/UserCard.tsx
Line: 17

Expected Behavior :-
Use semantic HTML tags instead of ARIA roles when available. In this case, replace the

with an element.

Proposed Fix :-
Replace the

element using role="status" with the semantic tag and remove the ARIA role.

I’d be happy to submit a PR for this if approved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions