From e42f775d4a0a2cbc6a5699cec35995be3df7c17a Mon Sep 17 00:00:00 2001 From: Ashwin P Chandran Date: Sat, 9 Feb 2019 15:02:23 -0500 Subject: [PATCH 1/2] Fixed Component URLInput not honouring className Related: #13754 This pull request fixes the URIInput Component not honouring. This add the className to the parent div for the component --- packages/editor/src/components/url-input/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/url-input/index.js b/packages/editor/src/components/url-input/index.js index 0d763957ce356d..db658990632e7b 100644 --- a/packages/editor/src/components/url-input/index.js +++ b/packages/editor/src/components/url-input/index.js @@ -227,11 +227,11 @@ class URLInput extends Component { } render() { - const { value = '', autoFocus = true, instanceId } = this.props; + const { value = '', autoFocus = true, instanceId, className } = this.props; const { showSuggestions, posts, selectedSuggestion, loading } = this.state; /* eslint-disable jsx-a11y/no-autofocus */ return ( -
+
Date: Tue, 12 Feb 2019 21:36:08 -0500 Subject: [PATCH 2/2] Updated URLInput Readme for className prop --- packages/editor/src/components/url-input/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor/src/components/url-input/README.md b/packages/editor/src/components/url-input/README.md index 19b67bf452b5e4..89001d45b3c4e1 100644 --- a/packages/editor/src/components/url-input/README.md +++ b/packages/editor/src/components/url-input/README.md @@ -131,6 +131,10 @@ Renders the URL input field used by the `URLInputButton` component. It can be us If you are not conditionally rendering this component set this property to `false`. +### `className: String` + +*Optional.* Adds and optional class to the parent `div` that wraps the URLInput field and popover + ## Example {% codetabs %}