Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update components for new BorderBox API
  • Loading branch information
BinaryMuse committed Apr 16, 2020
commit 80774f488b67a70ebce97df7ed7a090c588126c3
2 changes: 1 addition & 1 deletion docs/content/SideNav.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Add the `variant="lightweight"` prop to `SideNav` to render an alternative, more

```jsx live
<BorderBox p={3} backgroundColor='gray.0' maxWidth={360}>
<BorderBox border='none' borderBottom={1} mb={2} pb={1}>
<BorderBox borderWidth={0} borderBottomWidth={1} borderRadius={0} mb={2} pb={1}>
<Heading as="h5" fontSize={1} color="gray.7">Menu</Heading>
</BorderBox>
<SideNav variant="lightweight">
Expand Down
2 changes: 1 addition & 1 deletion src/CircleOcticon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function CircleOcticon(props) {
const {size, as} = props
const {icon, bg, as: asProp, ...rest} = props
return (
<BorderBox as={as} bg={bg} overflow="hidden" border="none" size={size} borderRadius="50%">
<BorderBox as={as} bg={bg} overflow="hidden" borderWidth={0} size={size} borderRadius="50%">
<Flex {...rest} alignItems="center" justifyContent="center">
<Octicon icon={icon} size={size} />
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion src/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function SideNavBase({variant, className, bordered, children, ...props}) {
const newClassName = classnames(className, `variant-${variantClassName}`)

if (!bordered) {
props = {...props, border: 'none'}
props = {...props, borderWidth: 0}
}

return (
Expand Down