microsoft / eslint-plugin-fluentui-jsx-a11y

ESLint rules for accessibility against FluentUI v9 components.
MIT License
26 stars 16 forks source link

feat: Add lint rule for Spinner component #90

Closed Harsh-Modi278 closed 2 months ago

Harsh-Modi278 commented 2 months ago

Add lint rule for Spinner component. The Spinner component needs to have following attributes to be accessible:

Screenshot: Screenshot 2024-09-17 at 12 41 06 PM

Examples of incorrect code for this rule:

<Spinner {...props} />
<Spinner 
    {...props} 
    aria-label="some text"
/>
<Spinner 
    {...props} 
    aria-live="polite"
/>

Examples of correct code for this rule:

<Spinner
    {...props} 
    aria-label="my screen reader text"
    aria-live="polite"
/>
Harsh-Modi278 commented 2 months ago

@microsoft-github-policy-service agree company="Microsoft"