Skip to content

Commit

Permalink
Fixed action button padding and removed plus sign in some pages
Browse files Browse the repository at this point in the history
Signed-off-by: Kshitij Tandon <tandonks@amazon.com>
  • Loading branch information
tandonks committed Sep 3, 2024
1 parent 6c815fe commit 7d62d0e
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 29 deletions.
2 changes: 1 addition & 1 deletion public/pages/Aliases/containers/AliasActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function AliasesActions(props: AliasesActionsProps) {
<>
<SimplePopover
data-test-subj="moreAction"
panelPaddingSize="none"
panelPaddingSize="s"
button={
<EuiSmallButton iconType="arrowDown" iconSide="right">
Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ HTMLCollection [
<span
class="euiButtonContent euiButton__content"
>
EuiIconMock
<span
class="euiButton__text"
>
Expand Down
1 change: 0 additions & 1 deletion public/pages/Aliases/containers/CreateAlias/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ export default function CreateAlias(props: ICreateAliasProps) {
fill
color="primary"
data-test-subj="createAliasButton"
iconType={isEdit ? undefined : "plus"}
onClick={async () => {
const { errors, values } = (await formGenerateRef.current?.validatePromise()) || {};
if (errors) {
Expand Down
9 changes: 1 addition & 8 deletions public/pages/CreateIndex/containers/IndexForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ export class IndexForm extends Component<IndexFormProps & { services: BrowserSer
/>
{hideButtons ? null : (
<>
<EuiSpacer />
<EuiSpacer />
<EuiFlexGroup alignItems="center" justifyContent="flexEnd">
<EuiFlexItem grow={false}>
Expand All @@ -472,13 +471,7 @@ export class IndexForm extends Component<IndexFormProps & { services: BrowserSer
</EuiSmallButtonEmpty>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSmallButton
fill
onClick={this.onSubmit}
isLoading={isSubmitting}
data-test-subj="createIndexCreateButton"
iconType={isEdit ? undefined : "plus"}
>
<EuiSmallButton fill onClick={this.onSubmit} isLoading={isSubmitting} data-test-subj="createIndexCreateButton">
{isEdit ? "Update" : "Create"}
</EuiSmallButton>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref<FieldInstance>) =>
}}
isLoading={isSubmitting}
data-test-subj="CreateIndexTemplateCreateButton"
iconType={"plus"}
>
Create template
</EuiSmallButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,6 @@ exports[`<TemplateDetail /> spec render component in non-edit-mode 1`] = `
<span
class="euiButtonContent euiButton__content"
>
EuiIconMock
<span
class="euiButton__text"
>
Expand Down
2 changes: 1 addition & 1 deletion public/pages/Indices/containers/IndicesActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function IndicesActions(props: IndicesActionsProps) {
{({ onShow }) => (
<SimplePopover
data-test-subj="moreAction"
panelPaddingSize="none"
panelPaddingSize="s"
button={
<EuiSmallButton iconType="arrowDown" iconSide="right">
Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,14 @@ import {
ArgsWithError,
EuiFlexGroup,
EuiFlexItem,
EuiPagination,
EuiSearchBar,
EuiCompressedSwitch,
EuiButton,
EuiPopover,
EuiContextMenuPanel,
EuiButtonIcon,
EuiButtonEmpty,
EuiSpacer,
} from "@elastic/eui";
import { DataStream } from "../../../../../server/models/interfaces";
import { ManagedIndices } from "../../containers/ManagedIndices/ManagedIndices";
import { ManagedIndexItem } from "plugins/index-management-dashboards-plugin/models/interfaces";
import { getUISettings } from "../../../../services/Services";
import { size } from "lodash";

interface ManagedIndexControlsProps {
search: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ export class ManagedIndices extends MDSEnabledComponent<ManagedIndicesProps, Man
isOpen={isPopoverOpen}
closePopover={this.closePopover}
anchorPosition="downLeft"
panelPaddingSize="none"
panelPaddingSize="s"
>
<EuiContextMenuPanel items={popoverActionItems} size="s" />
</EuiPopover>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ class ShrinkIndex extends Component<ShrinkIndexProps, ShrinkIndexState> {
operationType={OperationType.SHRINK}
/>
<EuiSpacer />
<EuiSpacer />
<EuiFlexGroup justifyContent="flexEnd">
<EuiFlexItem grow={false}>
<EuiSmallButtonEmpty onClick={this.onCancel} flush="left" data-test-subj="shrinkIndexCancelButton">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,6 @@ exports[`<Shrink index /> spec renders the component 1`] = `
<div
class="euiSpacer euiSpacer--l"
/>
<div
class="euiSpacer euiSpacer--l"
/>
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentFlexEnd euiFlexGroup--directionRow euiFlexGroup--responsive"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function TemplatesActions(props: TemplatesActionsProps) {
<>
<SimplePopover
data-test-subj="moreAction"
panelPaddingSize="none"
panelPaddingSize="s"
button={
<EuiSmallButton iconType="arrowDown" iconSide="right">
Actions
Expand Down
4 changes: 2 additions & 2 deletions public/pages/Transforms/containers/Transforms/Transforms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class Transforms extends MDSEnabledComponent<TransformProps, TransformSta
button={actionButton}
isOpen={isPopOverOpen}
closePopover={this.closePopover}
panelPaddingSize="none"
panelPaddingSize="s"
anchorPosition="downLeft"
data-test-subj="actionPopover"
>
Expand Down Expand Up @@ -364,7 +364,7 @@ export class Transforms extends MDSEnabledComponent<TransformProps, TransformSta
button={actionButton}
isOpen={isPopOverOpen}
closePopover={this.closePopover}
panelPaddingSize="none"
panelPaddingSize="s"
anchorPosition="downLeft"
data-test-subj="actionPopover"
>
Expand Down

0 comments on commit 7d62d0e

Please sign in to comment.