diff --git a/packages/react-ui-components/src/DropDown/contents.tsx b/packages/react-ui-components/src/DropDown/contents.tsx index 9a1a757383..854a525d38 100644 --- a/packages/react-ui-components/src/DropDown/contents.tsx +++ b/packages/react-ui-components/src/DropDown/contents.tsx @@ -50,6 +50,11 @@ interface ShallowDropDownContentsTheme { } export interface ShallowDropDownContentsProps { + /** + * An optional `id` to attach to the wrapper. + */ + readonly id?: string; + /** * An optional `className` to attach to the wrapper. */ @@ -198,6 +203,7 @@ export default class ShallowDropDownContents extends PureComponent { public render(): JSX.Element { const { + id, className, children, theme, @@ -115,6 +121,7 @@ class ShallowDropDownHeader extends PureComponent { return (
+
{React.Children.map( children, // @ts-ignore diff --git a/packages/react-ui-components/src/SelectBox/selectBox.js b/packages/react-ui-components/src/SelectBox/selectBox.js index f35ae00a37..5778ca4730 100644 --- a/packages/react-ui-components/src/SelectBox/selectBox.js +++ b/packages/react-ui-components/src/SelectBox/selectBox.js @@ -195,6 +195,7 @@ export default class SelectBox extends PureComponent { render() { const { + id, options, theme, showDropDownToggle, @@ -231,11 +232,11 @@ export default class SelectBox extends PureComponent { }); return ( - - + + {this.renderHeader()} - + {!plainInputMode &&