diff --git a/src/core/components/content-type.jsx b/src/core/components/content-type.jsx index 19d22188..6129d46d 100644 --- a/src/core/components/content-type.jsx +++ b/src/core/components/content-type.jsx @@ -11,7 +11,8 @@ export default class ContentType extends React.Component { contentTypes: PropTypes.oneOfType([ImPropTypes.list, ImPropTypes.set, ImPropTypes.seq]), value: PropTypes.string, onChange: PropTypes.func, - className: PropTypes.string + className: PropTypes.string, + ariaLabel: PropTypes.string } static defaultProps = { @@ -40,14 +41,14 @@ export default class ContentType extends React.Component { onChangeWrapper = e => this.props.onChange(e.target.value) render() { - let { contentTypes, className, value } = this.props + let { contentTypes, className, value, ariaLabel } = this.props if ( !contentTypes || !contentTypes.size ) return null return (
- { contentTypes.map( (val) => { return }).toArray()} diff --git a/src/core/components/param-body.jsx b/src/core/components/param-body.jsx index c2b02ed0..6ee9e76d 100644 --- a/src/core/components/param-body.jsx +++ b/src/core/components/param-body.jsx @@ -133,7 +133,12 @@ export default class ParamBody extends PureComponent { }
diff --git a/src/core/components/parameters/parameters.jsx b/src/core/components/parameters/parameters.jsx index a33cc508..eb6dd47a 100644 --- a/src/core/components/parameters/parameters.jsx +++ b/src/core/components/parameters/parameters.jsx @@ -220,7 +220,8 @@ export default class Parameters extends Component { onChange={(value) => { this.onChangeMediaType({ value, pathMethod }) }} - className="body-param-content-type" /> + className="body-param-content-type" + ariaLabel="Request content type" />
diff --git a/src/core/components/response.jsx b/src/core/components/response.jsx index f86e4d73..356e3d0e 100644 --- a/src/core/components/response.jsx +++ b/src/core/components/response.jsx @@ -197,6 +197,7 @@ export default class Response extends React.Component { : Seq() } onChange={this._onContentTypeChange} + ariaLabel="Media Type" /> {controlsAcceptHeader ? ( diff --git a/src/core/components/responses.jsx b/src/core/components/responses.jsx index 29de3a79..df479da0 100644 --- a/src/core/components/responses.jsx +++ b/src/core/components/responses.jsx @@ -95,7 +95,8 @@ export default class Responses extends React.Component { + className="execute-content-type" + ariaLabel="Response content type" /> }