Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinner: Change spinner icon when prefers-reduced-motion is set #87641

Merged
merged 5 commits into from May 13, 2024

Conversation

ashharrison90
Copy link
Contributor

@ashharrison90 ashharrison90 commented May 10, 2024

What is this feature?

Why do we need this feature?

  • better a11y

Who is this feature for?

  • everyone!

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@ashharrison90 ashharrison90 added area/grafana/ui Issues that belong to components in the @grafana/ui library type/accessibility Accessibility problem / enhancement no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels May 10, 2024
@ashharrison90 ashharrison90 added this to the 11.1.x milestone May 10, 2024
@ashharrison90 ashharrison90 self-assigned this May 10, 2024
@ashharrison90 ashharrison90 requested a review from a team as a code owner May 10, 2024 14:19
@ashharrison90 ashharrison90 requested review from joshhunt and L-M-K-B and removed request for a team May 10, 2024 14:19
@ashharrison90
Copy link
Contributor Author

ok something weird is going on with the matchMedia mock

but that is definitely not a friday afternoon job 😂 will come back to it on monday 🤓

Copy link
Contributor

@joshhunt joshhunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

)}
name={iconName}
size={size}
aria-label="loading spinner"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While where here should we get rid of this aria-label? 🥺

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it need replacing with anything or are we just straight removing it? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... after a brief look, about 75% use the spinner without a text label (and so would require a aria-label). Maybe lets just change it to 'loading' for now?

@ashharrison90 ashharrison90 merged commit 9bf3ada into main May 13, 2024
18 checks passed
@ashharrison90 ashharrison90 deleted the ash/spinner-reduced-motion branch May 13, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend area/grafana/ui Issues that belong to components in the @grafana/ui library no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes type/accessibility Accessibility problem / enhancement
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants