Skip to content

Commit

Permalink
Minor editor tweaks (#47670) (#47686)
Browse files Browse the repository at this point in the history
* Remove redundant rel

* Make switches compressed
  • Loading branch information
Tim Roes authored Oct 9, 2019
1 parent 341005c commit 4b8ec4f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ function SwitchOption<ParamName extends string>({
setValue,
}: SwitchOptionProps<ParamName>) {
return (
<EuiFormRow fullWidth={true}>
<EuiFormRow fullWidth={true} compressed={true}>
<EuiToolTip content={tooltip} delay="long" position="right">
<EuiSwitch
compressed={true}
label={label}
checked={value}
disabled={disabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ function AutoPrecisionParamEditor({ value, setValue }: AggParamEditorProps<boole

return (
<EuiFormRow compressed>
<EuiSwitch label={label} checked={value} onChange={ev => setValue(ev.target.checked)} />
<EuiSwitch
compressed={true}
label={label}
checked={value}
onChange={ev => setValue(ev.target.checked)}
/>
</EuiFormRow>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function DateRangesParamEditor({
<EuiFormRow compressed fullWidth>
<>
<EuiText size="xs">
<EuiLink href={getDocLink('date.dateMath')} target="_blank" rel="noopener">
<EuiLink href={getDocLink('date.dateMath')} target="_blank">
<FormattedMessage
id="common.ui.aggTypes.dateRanges.acceptedDateFormatsLinkText"
defaultMessage="Acceptable date formats"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function SwitchParamEditor({
<EuiFormRow fullWidth={true}>
<EuiToolTip content={displayToolTip} delay="long" position="right">
<EuiSwitch
compressed={true}
label={displayLabel}
checked={value}
disabled={disabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ function UseGeocentroidParamEditor({ value, setValue }: AggParamEditorProps<bool

return (
<EuiFormRow compressed>
<EuiSwitch label={label} checked={value} onChange={ev => setValue(ev.target.checked)} />
<EuiSwitch
compressed={true}
label={label}
checked={value}
onChange={ev => setValue(ev.target.checked)}
/>
</EuiFormRow>
);
}
Expand Down

0 comments on commit 4b8ec4f

Please sign in to comment.