diff --git a/src/components/button/__snapshots__/button.test.tsx.snap b/src/components/button/__snapshots__/button.test.tsx.snap
index 676ac894..af0ff569 100644
--- a/src/components/button/__snapshots__/button.test.tsx.snap
+++ b/src/components/button/__snapshots__/button.test.tsx.snap
@@ -79,9 +79,7 @@ exports[`Link with outline and icon text, extra padding renders as expected 1`]
bug
-
- Go do things
-
+ Go do things
diff --git a/src/components/control-file/__snapshots__/control-file.test.tsx.snap b/src/components/control-file/__snapshots__/control-file.test.tsx.snap
index 52a07a9a..2fef94fc 100644
--- a/src/components/control-file/__snapshots__/control-file.test.tsx.snap
+++ b/src/components/control-file/__snapshots__/control-file.test.tsx.snap
@@ -18,36 +18,30 @@ exports[`ControlFile all options renders as expected 1`] = `
type="button"
>
+
-
-
- harddrive
-
-
-
- Select an image
+ harddrive
+ Select an image
+
-
-
- harddrive
-
-
-
- Select a file
+ harddrive
+ Select a file
+
-
-
- harddrive
-
-
-
- Select a file
+ harddrive
+ Select a file
{
optional?: boolean;
disabled?: boolean;
validationError?: ReactElement | string;
- displayValue?: string;
+ displayValue?: ReactNode;
themeControlFile?: string;
themeControlWrapper?: string;
}
@@ -94,11 +94,9 @@ export default function ControlFile({
className={`${themeControlFile} relative`}
onClick={onButtonClick}
>
-
-
- {displayValue}
-
-
+
+ {displayValue}
+
diff --git a/src/components/control-file/examples/control-file-example-custom-display-value.tsx b/src/components/control-file/examples/control-file-example-custom-display-value.tsx
new file mode 100644
index 00000000..cec5503f
--- /dev/null
+++ b/src/components/control-file/examples/control-file-example-custom-display-value.tsx
@@ -0,0 +1,17 @@
+/*
+Basic.
+*/
+import React from 'react';
+import ControlFile from '../control-file';
+
+export default function Example() {
+ return (
+ A long truncated display value}
+ onChange={(value, id) => {
+ console.log(value, id);
+ }}
+ />
+ );
+}
diff --git a/src/components/form/__snapshots__/form.test.tsx.snap b/src/components/form/__snapshots__/form.test.tsx.snap
index 274216d4..f3cd2019 100644
--- a/src/components/form/__snapshots__/form.test.tsx.snap
+++ b/src/components/form/__snapshots__/form.test.tsx.snap
@@ -242,36 +242,30 @@ exports[`Form all controls renders as expected 1`] = `
type="button"
>
+
-
-
- harddrive
-
-
-
- Select a file
+ harddrive
+ Select a file
-
- What
-
+ What
@@ -62,9 +60,7 @@ exports[`IconText icon after renders 1`] = `
-
- Next
-
+ Next
@@ -118,9 +114,7 @@ exports[`IconText icon before renders 1`] = `
clipboard
-
- Copy
-
+ Copy