Skip to content

Commit

Permalink
fixes elastic#117448: button styles in exploratory view header (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
katrin-freihofner authored and gbamparop committed Jan 12, 2022
1 parent 99a73fc commit 876ade5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function ExpViewActionMenuContent({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButton
fill={true}
iconType="save"
fullWidth={false}
isDisabled={!lens.canUseEditor() || lensAttributes === null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui';
import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import React, { useCallback } from 'react';
import { toMountPoint, useKibana } from '../../../../../../../../src/plugins/kibana_react/public';
Expand Down Expand Up @@ -68,10 +68,9 @@ export function AddToCaseAction({ lensAttributes, timeRange }: AddToCaseProps) {

return (
<>
<EuiButton
<EuiButtonEmpty
size="s"
isLoading={isSaving}
fullWidth={false}
isDisabled={lensAttributes === null}
onClick={() => {
if (lensAttributes) {
Expand All @@ -82,7 +81,7 @@ export function AddToCaseAction({ lensAttributes, timeRange }: AddToCaseProps) {
{i18n.translate('xpack.observability.expView.heading.addToCase', {
defaultMessage: 'Add to case',
})}
</EuiButton>
</EuiButtonEmpty>
{isCasesOpen &&
lensAttributes &&
cases.getAllCasesSelectorModal(getAllCasesSelectorModalProps)}
Expand Down

0 comments on commit 876ade5

Please sign in to comment.