You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* display semantic colors in table and allow to filter them ([#258](https://github.com/freenowtech/wave/issues/258)) ([2e83e76](https://github.com/freenowtech/wave/commit/2e83e763427fb5ce67fc99719a0a3a8837be086c))
Copy file name to clipboardExpand all lines: src/components/PhoneInput/docs/PhoneInput.mdx
+22
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@ import { COUNTRIES } from '../constants';
15
15
16
16
# PhoneInput
17
17
18
+
The `PhoneInput` is a component to input a phone number in international format.
19
+
20
+
The component consists of two controls: a select to pick a prefix and an input to type in the phone number. The select shows all the country codes available world-wide.
If the list of prefixes is not fully visible when opened, like in [this Sandbox example](https://codesandbox.io/s/inspiring-austin-2006xl?file=/src/index.js), use `listPortalTarget` prop to attach the popup to the document's body:
59
+
60
+
```jsx
61
+
<PhoneInput listPortalTarget={document.body} />
62
+
```
63
+
64
+
The reason of the issue is that the prefix selection popup is rendered inside the same container as the component by default. If the container does not allow content to overflow (e.g. via `overflow: hidden;`), everything that overflows the container borders will be hidden.
Copy file name to clipboardExpand all lines: src/components/Popover/Popover.tsx
+7-3
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,10 @@ interface PopoverProps {
72
72
* Popover content (can be any valid React Element or component containing React Elements)
73
73
*/
74
74
content: React.ReactNode;
75
+
/**
76
+
* Popover content padding
77
+
*/
78
+
padding?: string|number;
75
79
/**
76
80
* Optional: Specify the Popover content placement (it changes automatically if the Popover content cannot fit inside the viewport with the selected placement)
0 commit comments