Skip to content

Commit

Permalink
chore(docs): fix margin classes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoebe Gao authored and phwebi committed Oct 27, 2021
1 parent 1cc8a14 commit 5e6d229
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion stories/examples/DropdownSetActiveFromChild.js
Expand Up @@ -4,7 +4,7 @@ import { Navbar, Nav, NavItem, NavLink, UncontrolledDropdown, DropdownToggle, Dr
export default function Example () {
return (
<Navbar color="light" light expand="md">
<Nav className="ml-auto" navbar>
<Nav className="ms-auto" navbar>
<NavItem>
<NavLink href="/components/">Inactive Link</NavLink>
</NavItem>
Expand Down
8 changes: 4 additions & 4 deletions stories/examples/Form/FormInline.js
Expand Up @@ -4,12 +4,12 @@ import { Button, Form, FormGroup, Label, Input } from 'reactstrap';
const Example = (props) => {
return (
<Form inline>
<FormGroup className="mb-2 mr-sm-2 mb-sm-0">
<Label for="exampleEmail" className="mr-sm-2">Email</Label>
<FormGroup className="mb-2 me-sm-2 mb-sm-0">
<Label for="exampleEmail" className="me-sm-2">Email</Label>
<Input type="email" name="email" id="exampleEmail" placeholder="something@idk.cool" />
</FormGroup>
<FormGroup className="mb-2 mr-sm-2 mb-sm-0">
<Label for="examplePassword" className="mr-sm-2">Password</Label>
<FormGroup className="mb-2 me-sm-2 mb-sm-0">
<Label for="examplePassword" className="me-sm-2">Password</Label>
<Input type="password" name="password" id="examplePassword" placeholder="don't tell!" />
</FormGroup>
<Button>Submit</Button>
Expand Down
2 changes: 1 addition & 1 deletion stories/examples/Navbar.js
Expand Up @@ -27,7 +27,7 @@ const Example = (args) => {
<NavbarBrand href="/">reactstrap</NavbarBrand>
<NavbarToggler onClick={toggle} />
<Collapse isOpen={isOpen} navbar>
<Nav className="mr-auto" navbar>
<Nav className="me-auto" navbar>
<NavItem>
<NavLink href="/components/">Components</NavLink>
</NavItem>
Expand Down
4 changes: 2 additions & 2 deletions stories/examples/NavbarToggler.js
Expand Up @@ -9,8 +9,8 @@ const Example = (props) => {
return (
<div>
<Navbar color="faded" light>
<NavbarBrand href="/" className="mr-auto">reactstrap</NavbarBrand>
<NavbarToggler onClick={toggleNavbar} className="mr-2" />
<NavbarBrand href="/" className="me-auto">reactstrap</NavbarBrand>
<NavbarToggler onClick={toggleNavbar} className="me-2" />
<Collapse isOpen={!collapsed} navbar>
<Nav navbar>
<NavItem>
Expand Down
6 changes: 3 additions & 3 deletions stories/examples/PopoverMulti.js
Expand Up @@ -10,9 +10,9 @@ const PopoverItem = props => {
const toggle = () => setPopoverOpen(!popoverOpen);

return (
<span>
<>
<Button
className="mr-1"
className="me-1"
color="secondary"
id={"Popover-" + id}
type="button"
Expand All @@ -31,7 +31,7 @@ const PopoverItem = props => {
Pellentesque ornare sem lacinia quam venenatis vestibulum.
</PopoverBody>
</Popover>
</span>
</>
);
};

Expand Down
2 changes: 1 addition & 1 deletion stories/examples/TooltipMulti.js
Expand Up @@ -11,7 +11,7 @@ const TooltipItem = props => {

return (
<span>
<Button className="mr-1" color="secondary" id={"Tooltip-" + id}>
<Button className="me-1" color="secondary" id={"Tooltip-" + id}>
{item.text}
</Button>
<Tooltip
Expand Down

0 comments on commit 5e6d229

Please sign in to comment.