未验证 提交 53ce159f 编写于 作者: K Kyle Tsang 提交者: GitHub

fix(Navbar): remove invalid sticky bottom reference (#5656)

上级 0e206104
......@@ -26,7 +26,7 @@ export interface NavbarProps extends BsPrefixPropsWithChildren {
expand?: boolean | 'sm' | 'md' | 'lg' | 'xl';
bg?: string;
fixed?: 'top' | 'bottom';
sticky?: 'top' | 'bottom';
sticky?: 'top';
onToggle?: (expanded: boolean) => void;
onSelect?: SelectCallback;
collapseOnSelect?: boolean;
......@@ -75,12 +75,12 @@ const propTypes = {
fixed: PropTypes.oneOf(['top', 'bottom']),
/**
* Position the navbar at the top or bottom of the viewport,
* but only after scrolling past it. . A convenience prop for the `sticky-*` positioning classes.
* Position the navbar at the top of the viewport, but only after scrolling past it.
* A convenience prop for the `sticky-top` positioning class.
*
* __Not supported in <= IE11 and other older browsers without a polyfill__
*/
sticky: PropTypes.oneOf(['top', 'bottom']),
sticky: PropTypes.oneOf(['top']),
/**
* Set a custom element for this component.
......
......@@ -150,9 +150,6 @@ export default withLayout(function NaπvbarSection({ data }) {
<h3 className="h4">Sticky top</h3>
<CodeBlock codeText={` <Navbar sticky="top" />`} />
<h3 className="h4">Sticky bottom</h3>
<CodeBlock codeText={` <Navbar sticky="bottom" />`} />
<LinkedHeading h="2" id="navbars-mobile-friendly">
Responsive behaviors
</LinkedHeading>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册