Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ActionMenu] Move margin-top to Page > Header.scss #1725

Merged
merged 1 commit into from
Jun 24, 2019

Conversation

beefchimi
Copy link
Contributor

@beefchimi beefchimi commented Jun 21, 2019

While building out some UI in my app, I realized that I stuck margin-top on the ActionMenu when in reality it should be up to the consuming parent how to provide spacing.

All I have done is simply move margin-top from ActionMenu.scss into Header.scss. The visual result within Polaris is exactly the same.

I'm keeping the negative margin-left as that is specifically for offsetting the action padding - so that spacing logic makes sense within ActionMenu.

Below is a gif of my app. This is with the current ActionMenu (with margin-top). You can see me toggling the margin-top on/off. Once this PR merges, I won't have to worry about this spacing discrepancy.

thingy

Also, I have applied the skip changelog label, as there is no change for the end user, and the ActionMenu has not been released yet.

@beefchimi beefchimi added the Bug Something is broken and not working as intended in the system. label Jun 21, 2019
@beefchimi beefchimi self-assigned this Jun 21, 2019
@BPScott BPScott temporarily deployed to polaris-react-pr-1725 June 21, 2019 20:13 Inactive
@@ -1,5 +1,5 @@
import * as React from 'react';
import classNames from 'classnames';
import {classNames} from '@shopify/css-utilities';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistent import for classNames

@beefchimi beefchimi added the 🤖Skip Changelog Causes CI to ignore changelog update check. label Jun 21, 2019
@beefchimi beefchimi merged commit 9181edd into master Jun 24, 2019
@beefchimi beefchimi deleted the actionmenu-margin-top branch June 24, 2019 13:15
@dleroux dleroux temporarily deployed to production June 25, 2019 17:18 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system. 🤖Skip Changelog Causes CI to ignore changelog update check.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants