d64b6264ff
* refactor: modify interfaces to make tooltip or aria-label required * refactor: change functionality around aria-label and tooltip * refactor: change and add information in storybook documentation * refactor: remove default from tooltip * refactor: IconButton to make tooltip or aria-label required * refactor: Fix tests * refactor: Fix tests * refactor: Fix tests * refactor: Fix tests * feat: add migration guide for breaking change * feat: add latest requirements to storybook docs * refactor: separate iconbutton story with and without tooltip * refactor: remove exported baseArgs * refactor: clean up and restructure original story * refactor: adjust styling * refactor: enable control for tooltip * refactor: clean up * refactor: enable control for aria-label * refactor: fix theme getting the wrong theme * refactor: fix tests * refactor: adjust story * refactor: remove confusing story * refactor: adjust controls for stories
1.1 KiB
1.1 KiB
description, keywords, title, menutitle, weight
| description | keywords | title | menutitle | weight | |||||
|---|---|---|---|---|---|---|---|---|---|
| Guide for migrating plugins from Grafana v10.0.x to v10.1.x |
|
Migrate plugins from Grafana 10.0.x to 10.1.x | v10.0.x to v10.1.x | 1900 |
Migrate plugins from Grafana version 10.0.x to 10.1.x
Accessibility update for IconButton component in grafana-ui
We updated the component's TypeScript interface due to an accessibility issue. This change was delivered to the core grafana repo with PR 69699.
In case you are using the IconButton component in your plugin you will get TypeScript errors related to the change.
Recommended actions:
- Review use cases of IconButton in your plugin.
- Add a meaningful tooltip which the component will also use as an aria-label.
- Another option is to set an aria-label. In this case a tooltip will not be shown.
Please note:
The IconButton used to have a property called ariaLabel which got deprecated with this change. You can now use the regular property aria-label instead.