fix: style tweaks for inconsistent button spacing (#13254)

* fix: button margin glitches

* removing unncessary fragment

* removing grid gap

* Revert "removing unncessary fragment"

This reverts commit 659e27348f705a85d203a4c1b77d78188200614d.
This commit is contained in:
Evan Rusackas 2021-02-22 22:49:59 -08:00 committed by GitHub
parent a5a31e0e60
commit 8db5d43969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -372,7 +372,6 @@ div.tablePopover {
.ResultSetButtons {
display: grid;
grid-auto-flow: column;
grid-gap: 4px;
padding-right: 8px;
}

View File

@ -159,7 +159,7 @@ export default function Button(props: ButtonProps) {
<AntdButton
href={disabled ? undefined : href}
disabled={disabled}
className={cx(className, { cta: !!cta })}
className={cx(className, 'superset-button', { cta: !!cta })}
css={{
display: 'inline-flex',
alignItems: 'center',
@ -199,9 +199,9 @@ export default function Button(props: ButtonProps) {
backgroundColor: backgroundColorDisabled,
borderColor: borderColorDisabled,
},
marginLeft: theme.gridUnit * 2,
'&:first-of-type': {
marginLeft: 0,
marginLeft: 0,
'& + .superset-button': {
marginLeft: theme.gridUnit * 2,
},
'& :first-of-type': {
marginRight: firstChildMargin,