mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana-UI: Add id to Select to make it easier to test (#31230)
* Prettier formatting * Grafana-UI: Add support for id and inputId props to Select * Grafana-UI: Add aria-label to Select * Grafana-UI: InlineField and Field get ID from inputId prop For Select * Fix tests using TagFilter * Update Select prop documentation * Update Field tests to use screen instead * Fix the last few tests
This commit is contained in:
@@ -93,13 +93,13 @@ export const TagFilter: FC<Props> = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={styles.tagFilter} aria-label="Tag filter">
|
||||
<div className={styles.tagFilter}>
|
||||
{isClearable && tags.length > 0 && (
|
||||
<span className={styles.clear} onClick={() => onTagChange([])}>
|
||||
Clear tags
|
||||
</span>
|
||||
)}
|
||||
<AsyncSelect {...selectOptions} prefix={<Icon name="tag-alt" />} />
|
||||
<AsyncSelect {...selectOptions} prefix={<Icon name="tag-alt" />} aria-label="Tag filter" />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user