mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 17:22:09 +08:00
GrafanaUI: Define tooltip or aria-label as required for IconButton (#69699)
* 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
This commit is contained in:
@ -40,7 +40,6 @@ export const QueryOperationRowHeader = ({
|
||||
{collapsable && (
|
||||
<IconButton
|
||||
name={isContentVisible ? 'angle-down' : 'angle-right'}
|
||||
aria-label="toggle collapse and expand query row"
|
||||
tooltip={isContentVisible ? 'Collapse query row' : 'Expand query row'}
|
||||
className={styles.collapseIcon}
|
||||
onClick={onRowToggle}
|
||||
|
Reference in New Issue
Block a user