Buttons: Center text in buttons (#23789)

* Buttons: Center buttons

* Updated size of transformation button

* removed snapshot
This commit is contained in:
Torkel Ödegaard
2020-04-22 18:47:41 +02:00
committed by GitHub
parent 78a6d39ebb
commit 45dfa20467
10 changed files with 25 additions and 875 deletions

View File

@ -87,7 +87,9 @@ export const getButtonStyles = stylesFactory((props: StyleProps) => {
font-family: ${theme.typography.fontFamily.sansSerif};
font-size: ${fontSize};
padding: ${padding};
height: ${height};
height: ${height}px;
// Deduct border from line-height for perfect vertical centering on windows and linux
line-height: ${height - 2}px;
vertical-align: middle;
cursor: pointer;
border: 1px solid ${borderColor};