Blueprint: Button, ButtonGroup, Select are not aligned vertically

Created on 22 Feb 2017  路  5Comments  路  Source: palantir/blueprint

Different widget has different value for vertical-align. For example, ButtonGroup has "baseline" by chrome default, Button has "middle", Select has "middle"
This is a style that I think is undesirable. Please ignore the dropdown arrow in example. I can't get icon to work in jsfiddle

-@blueprint/[email protected]
-Linux, Latest Chrome as well as Firefox

Steps to reproduce

https://jsfiddle.net/f43s95rf/

Actual behavior


image

Expected behavior

image

design core aged away enhancement

Most helpful comment

@lijiaqigreat have you tried making the row containing these elements display: flex? that should sort out your layout challenges real quick via align-items.

All 5 comments

What is the ideal scenario? Everything baseline or everything middle?

@llorca I'd say everything should be middle. Since if widgets of different size are put together, it usually looks best to align middle. But I don't think have the experience or knowledge to have a well-thought suggest.

@lijiaqigreat have you tried making the row containing these elements display: flex? that should sort out your layout challenges real quick via align-items.

@giladgray it worked! thanks. Feel free to close this ticket, or change them to middle anyway. Since it might be a bug in other scenarios.

+1, it would be nice to fix this for non-flex scenarios too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

westrem picture westrem  路  3Comments

tgreenwatts picture tgreenwatts  路  3Comments

sunabozu picture sunabozu  路  3Comments

vinz243 picture vinz243  路  3Comments

Goddak picture Goddak  路  3Comments