Skip to content

Commit

Permalink
Merge pull request #1725 from Shopify/actionmenu-margin-top
Browse files Browse the repository at this point in the history
[ActionMenu] Move margin-top to Page > Header.scss
  • Loading branch information
beefchimi authored Jun 24, 2019
2 parents 776d652 + 17f5553 commit 9181edd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/ActionMenu/ActionMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

.ActionMenu {
&:not(.rollup) {
margin-top: spacing(tight);
margin-left: -$menu-action-padding-x;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ActionMenu/ActionMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import classNames from 'classnames';
import {classNames} from '@shopify/css-utilities';

import {
ActionListSection,
Expand Down
3 changes: 3 additions & 0 deletions src/components/Page/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,14 @@ $action-menu-rollup-computed-width: icon-size() + (spacing(tight) * 2);
}

.ActionMenuWrapper {
margin-top: spacing(tight);

// stylelint-disable-next-line selector-max-class
.mobileView & {
position: absolute;
top: spacing(loose) + (control-height() / 4);
right: 0;
margin-top: 0;

@include page-content-when-not-fully-condensed {
right: -(spacing(tight));
Expand Down

0 comments on commit 9181edd

Please sign in to comment.