Skip to content

Commit

Permalink
fixes #117448: button styles in exploratory view header (#122239)
Browse files Browse the repository at this point in the history
  • Loading branch information
katrin-freihofner authored Jan 4, 2022
1 parent 31b805a commit 24f5be4
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 24f5be4

Please sign in to comment.