Skip to content

Style merge button in banner - #5078

Merged
iAmWillShepherd merged 5 commits into
then-i-wanna-mergefrom
pretty-merge-button
Jul 3, 2018
Merged

iAmWillShepherd merged 5 commits into
then-i-wanna-mergefrom
pretty-merge-button

Conversation

@ampinsk

@ampinsk ampinsk commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

This styles the merge button in the notification banner!

Targets the then-i-wanna-merge branch

Light theme Dark theme
screen shot 2018-07-02 at 10 57 41 am screen shot 2018-07-02 at 10 57 56 am

@ampinsk

ampinsk commented Jul 2, 2018

Copy link
Copy Markdown
Contributor Author

Hey @niik, @donokuda and weren't sure if ButtonGroup was necessary to use here, do you have any thoughts?

@ampinsk ampinsk added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 2, 2018
@donokuda

donokuda commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

@ampinsk Got any thoughts on having the buttons be the same size? I don't have any particularly strong feels either way but thought it looked nice:

@ampinsk

ampinsk commented Jul 2, 2018

Copy link
Copy Markdown
Contributor Author

@donokuda I don't feel too strongly either, but my only thought is that it might look more intrusive if the buttons are bigger?

@donokuda

donokuda commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

@donokuda I don't feel too strongly either, but my only thought is that it might look more intrusive if the buttons are bigger?

Yeah, I can see that. I'm fine with leaving it as is. 👍

I just realized that the font size for the button is bigger than the text in the banner. 😅Can you adding the .small-button class to each of the buttons? That should decrease the font-size and keep the buttons compact in the banner.

.small-button {
font-size: var(--font-size-sm);
padding: 0 var(--spacing-half);
height: 21px;
}

@ampinsk

ampinsk commented Jul 2, 2018

Copy link
Copy Markdown
Contributor Author

@donokuda I agree this looks cleaner ✨

screen shot 2018-07-02 at 3 45 33 pm

@donokuda donokuda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! I'll keep this open for about a day then merge if no one has any objections. ✨

@niik

niik commented Jul 3, 2018

Copy link
Copy Markdown
Member

Hey @niik, @donokuda and weren't sure if ButtonGroup was necessary to use here, do you have any thoughts?

I don't think it's necessary. The ButtonGroup will switch the order of the actions on Windows and that should be reserved for 'Yes/No'-type actions in dialogs.

Other than that I think this looks great!

@iAmWillShepherd
iAmWillShepherd merged commit 411924f into then-i-wanna-merge Jul 3, 2018
@iAmWillShepherd
iAmWillShepherd deleted the pretty-merge-button branch July 3, 2018 19:01
@lock lock Bot locked as resolved and limited conversation to collaborators Sep 1, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants