Commit 8238c463 by Alex Khomenko Committed by GitHub

Grafana-UI: FieldValidationMessage tweaks (#27246)

* Grafana-UI: Export FieldValidationMessage

* Grafana-UI: Add alert role to FieldValidationMessage
parent 005e048c
...@@ -45,7 +45,7 @@ export const FieldValidationMessage: React.FC<FieldValidationMessageProps> = ({ ...@@ -45,7 +45,7 @@ export const FieldValidationMessage: React.FC<FieldValidationMessageProps> = ({
const styles = getFieldValidationMessageStyles(theme); const styles = getFieldValidationMessageStyles(theme);
return ( return (
<div className={cx(styles.fieldValidationMessage, className)}> <div role="alert" className={cx(styles.fieldValidationMessage, className)}>
<Icon className={styles.fieldValidationMessageIcon} name="exclamation-triangle" /> <Icon className={styles.fieldValidationMessageIcon} name="exclamation-triangle" />
{children} {children}
</div> </div>
......
...@@ -143,6 +143,7 @@ export { Label } from './Forms/Label'; ...@@ -143,6 +143,7 @@ export { Label } from './Forms/Label';
export { Field } from './Forms/Field'; export { Field } from './Forms/Field';
export { Legend } from './Forms/Legend'; export { Legend } from './Forms/Legend';
export { FieldSet } from './Forms/FieldSet'; export { FieldSet } from './Forms/FieldSet';
export { FieldValidationMessage } from './Forms/FieldValidationMessage';
export { default as resetSelectStyles } from './Select/resetSelectStyles'; export { default as resetSelectStyles } from './Select/resetSelectStyles';
export * from './Select/Select'; export * from './Select/Select';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment