-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(breadcrumbs): add padding and margin interfaces to component
Adds `margin` and `padding` props to component to allow custom values to be passed. Overrides the user agent styling on the `ol` element as well. fix #6096
- Loading branch information
Showing
4 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import styled from "styled-components"; | ||
import { space } from "styled-system"; | ||
import baseTheme from "../../style/themes/base"; | ||
|
||
const StyledBreadcrumbs = styled.nav` | ||
${space} | ||
ol { | ||
padding: 0; | ||
margin: 0; | ||
list-style: none; | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
`; | ||
|
||
StyledBreadcrumbs.defaultProps = { theme: baseTheme }; | ||
|
||
export default StyledBreadcrumbs; |