Skip to content

Commit 56bc286

Browse files
committed
fix(html): update ImageEditor action pane checkbox label
1 parent 1e68814 commit 56bc286

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/html/src/imageeditor/templates/imageeditor-crop.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ImageEditor } from "..";
22
import { ButtonGroup, ToolbarItem, ToolbarSeparator } from "../..";
33
import { Button } from "../../button";
4-
import { Checkbox } from "../../checkbox";
4+
import { CheckboxWithLabelAfter } from "../../checkbox";
55
import { DropdownList } from "../../dropdownlist";
66
import { FormNormal, Fieldset, FormField } from "../../form";
77
import { NumericTextbox } from "../../numerictextbox";
@@ -58,8 +58,7 @@ export const ImageEditorCrop = (props: any) => (
5858
/>
5959
<FormField
6060
colSpan="2"
61-
label="Lock aspect ratio:"
62-
editor={ <Checkbox /> }
61+
editor={ <CheckboxWithLabelAfter>Lock aspect ratio</CheckboxWithLabelAfter> }
6362
/>
6463
</Fieldset>
6564
</FormNormal>

packages/html/src/imageeditor/templates/imageeditor-resize.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ImageEditor } from "..";
22
import { Button } from "../../button";
3-
import { Checkbox } from "../../checkbox";
3+
import { CheckboxWithLabelAfter } from "../../checkbox";
44
import { DropdownList } from "../../dropdownlist";
55
import { FormNormal, Fieldset, FormField } from "../../form";
66
import { NumericTextbox } from "../../numerictextbox";
@@ -53,8 +53,7 @@ export const ImageEditorResize = (props: any) => (
5353
/>
5454
<FormField
5555
colSpan="2"
56-
label="Lock aspect ratio:"
57-
editor={ <Checkbox /> }
56+
editor={ <CheckboxWithLabelAfter>Lock aspect ratio</CheckboxWithLabelAfter> }
5857
/>
5958
</Fieldset>
6059
</FormNormal>

0 commit comments

Comments
 (0)