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

Make minimal button group divider modifier-independent #911

Merged
merged 2 commits into from
Apr 3, 2017

Conversation

llorca
Copy link
Contributor

@llorca llorca commented Mar 30, 2017

Fixes #910

Now works well with pt-minimal, pt-large, pt-vertical or any combination of these.

Reviewers should focus on:

The general approach to the solution

Screenshot

Before:
image

After:
image

@cmslewis
Copy link
Contributor

@llorca here's the fix for the broken unit test: #916

@blueprint-bot
Copy link

Merge remote-tracking branch 'origin/master' into al/button-minimal-large-divider

Preview: docs
Coverage: core | datetime

@@ -148,7 +148,8 @@ Styleguide components.button-group.css
@include pt-button-minimal-divider();
display: inline-block;
position: absolute;
top: 0;
top: 10%;
bottom: 10%;
Copy link
Contributor

Choose a reason for hiding this comment

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

why percentage instead of pixel offset? i'd expect top/bottom: $pt-grid-size to look good in these cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, this becomes too small in the non large use case. Percentage works and is adapting its height no matter the button size

@giladgray giladgray merged commit db4e9c6 into master Apr 3, 2017
@giladgray giladgray deleted the al/button-minimal-large-divider branch April 3, 2017 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants