Skip to content

Commit

Permalink
Handle PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatf committed Sep 22, 2020
1 parent 061ddce commit 5ea665b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 7 additions & 2 deletions packages/components/src/navigation/back-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ import { Icon, chevronLeft } from '@wordpress/icons';
import { useNavigationContext } from '../context';
import { MenuBackButtonUI } from '../styles/navigation-styles';

export default function NavigationMenu( props ) {
const { backButtonLabel, className, href, onClick, parentMenu } = props;
export default function NavigationMenu( {
backButtonLabel,
className,
href,
onClick,
parentMenu,
} ) {
const { setActiveMenu, navigationTree } = useNavigationContext();

const classes = classnames(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export const MenuUI = styled.div`
margin: 0;
list-style: none;
}
.components-navigation__back-button {
margin-bottom: 24px;
}
`;

export const MenuBackButtonUI = styled( Button )`
Expand All @@ -51,10 +54,6 @@ export const MenuTitleUI = styled( Text )`
padding: 4px 0 4px 16px;
margin-bottom: 8px;
color: ${ G2.gray[ 100 ] };
&:not( :first-child ) {
margin-top: 24px;
}
`;

export const GroupTitleUI = styled( Text )`
Expand Down

0 comments on commit 5ea665b

Please sign in to comment.