diff --git a/ghost/portal/src/components/common/InputField.js b/ghost/portal/src/components/common/InputField.js index 064c247336..8c93431586 100644 --- a/ghost/portal/src/components/common/InputField.js +++ b/ghost/portal/src/components/common/InputField.js @@ -27,18 +27,21 @@ const Styles = ({style = {}}) => { }; }; -function InputField({name, label, type, value, placeholder, onChange, style}) { +function InputField({name, id, label, type, value, placeholder, onChange, style}) { const Style = Styles({style}); + id = id || `input-${name}`; return ( <> - + onChange(e, name)} style={Style.input} + aria-label={label} /> );