mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
Grafana-UI: FieldValidationMessage tweaks (#27246)
* Grafana-UI: Export FieldValidationMessage * Grafana-UI: Add alert role to FieldValidationMessage
This commit is contained in:
parent
005e048c01
commit
8238c46350
@ -45,7 +45,7 @@ export const FieldValidationMessage: React.FC<FieldValidationMessageProps> = ({
|
||||
const styles = getFieldValidationMessageStyles(theme);
|
||||
|
||||
return (
|
||||
<div className={cx(styles.fieldValidationMessage, className)}>
|
||||
<div role="alert" className={cx(styles.fieldValidationMessage, className)}>
|
||||
<Icon className={styles.fieldValidationMessageIcon} name="exclamation-triangle" />
|
||||
{children}
|
||||
</div>
|
||||
|
@ -143,6 +143,7 @@ export { Label } from './Forms/Label';
|
||||
export { Field } from './Forms/Field';
|
||||
export { Legend } from './Forms/Legend';
|
||||
export { FieldSet } from './Forms/FieldSet';
|
||||
export { FieldValidationMessage } from './Forms/FieldValidationMessage';
|
||||
|
||||
export { default as resetSelectStyles } from './Select/resetSelectStyles';
|
||||
export * from './Select/Select';
|
||||
|
Loading…
Reference in New Issue
Block a user