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
feat(popperjs): use popperjs instead of tether (#561)
Add tests
Update existing tests (jest has been upgraded)
improve code coverage
Breaking change: getRef has been renamed to innerRef to line up with other libraries.
Breaking change: tether props have been removed.
The <code>Dropdown</code> component is used to pass the <code>isOpen</code>&<code>toggle</code> props via context to the following components: <code>DropdownToggle</code>, <code>DropdownMenu</code>. The <code>DropdownToggle</code> uses the <code>Button</code> component internally, meaning it also accepts all the props the <Linkto="/components/buttons/">Button component</Link> accepts.
43
43
</p>
44
-
<h4>Advanced Positioning</h4>
45
-
<p>
46
-
The <code>DropdownMenu</code> can automatically be flipped (dropup vs dropdown) according to space available in the viewport by passing the <code>tether</code> prop to Dropdown <code>{`<Dropdown tether />`}</code>. For full customization, an object with <ahref="http://tether.io/#options">Tether options</a> can be used instead.
<p>Popovers are built with <ahref="http://tether.io/">http://tether.io</a>.</p>
16
+
<p>Popovers are built with <ahref="https://popper.js.org/">https://popper.js.org/</a> via <ahref="https://github.com/souporserious/react-popper">https://github.com/souporserious/react-popper</a>.</p>
// function which is passed a reference to the instance of tether for manually \`position()\`ing
33
+
target: PropTypes.oneOfType([
34
+
PropTypes.string,
35
+
PropTypes.func,
36
+
DOMElement, // instanceof Element (https://developer.mozilla.org/en-US/docs/Web/API/Element)
<p>Tooltips are built with <ahref="http://tether.io/">http://tether.io</a>.</p>
20
+
<p>Tooltips are built with <ahref="https://popper.js.org/">https://popper.js.org/</a> via <ahref="https://github.com/souporserious/react-popper">https://github.com/souporserious/react-popper</a>.</p>
<p>Check out the demo <ahref="http://output.jsbin.com/dimive/latest">here</a></p>
101
101
<h2className="mt-5">About the Project</h2>
102
102
<hr/>
103
-
<p>This library contains React Bootstrap 4 components that favor composition and control. The library does not depend on jQuery or Bootstrap javascript. However, <ahref="http://tether.io/"target="_blank">Tether</a> is relied upon for advanced positioning of content like Tooltips, Popovers, and auto-flipping Dropdowns.</p>
103
+
<p>This library contains React Bootstrap 4 components that favor composition and control. The library does not depend on jQuery or Bootstrap javascript. However, <ahref="https://popper.js.org/">https://popper.js.org/</a> via <ahref="https://github.com/souporserious/react-popper">https://github.com/souporserious/react-popper</a> is relied upon for advanced positioning of content like Tooltips, Popovers, and auto-flipping Dropdowns.</p>
104
104
<p>There are a few core concepts to understand in order to make the most out of this library.</p>
105
105
<p>1) Your content is expected to be composed via props.children rather than using named props to pass in Components.</p>
2) Attributes in this library are used to pass in state, conveniently apply modifier classes, enable advanced functionality (like tether), or automatically include non-content based elements.
129
+
2) Attributes in this library are used to pass in state, conveniently apply modifier classes, enable advanced functionality (like popperjs), or automatically include non-content based elements.
0 commit comments