ensure the old layout is fine for users until they see the new merge hint#5563
Merged
outofambit merged 1 commit intodisplay-merge-status-in-compare-tabfrom Sep 7, 2018
Merged
Conversation
outofambit
approved these changes
Sep 7, 2018
Contributor
|
i would love to move some (or more) of our styles to use https://www.styled-components.com/ (or something simliar) at some point as that would make conditional styling like this much simpler |
donokuda
approved these changes
Sep 7, 2018
Contributor
donokuda
left a comment
There was a problem hiding this comment.
cc @desktop/design for 👀 and ideas on how to manage styles that are tied to feature flags like this.
One approach I can think of off the top of my head is to remove the margin-top: var(--spacing) on the merge message container and add a margin-bottom: var(--spacing) to the merge button (or the ButtonGroup that wraps the button.)
Additionally, I am in favor of exploring @outofambit's suggestion for situations like this.
Contributor
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR ensures the existing message (which will be default until we enable the feature flag) still looks fine.
To test this out, checkout
display-merge-status-in-compare-taband disable the feature flag:Run it up locally and you'll see it looks more squashed compared to what we've currently shipped:
This PR adds back that top margin, and indicates it can be cleaned up when we're happy with this feature:
cc @desktop/design for 👀 and ideas on how to manage styles that are tied to feature flags like this.