Skip to content

Commit 6eedf6f

Browse files
authored
feat: change "Cancel" to "Close" in QuickEmbed component (#1317)
1 parent f3c5fc4 commit 6eedf6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/embed-components/src/QuickEmbed/QuickEmbed.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('QuickEmbed', () => {
9595
expect(
9696
screen.getByRole('button', { name: 'Copy Link' })
9797
).toBeInTheDocument()
98-
expect(screen.getByRole('button', { name: 'Cancel' })).toBeInTheDocument()
98+
expect(screen.getByRole('button', { name: 'Close' })).toBeInTheDocument()
9999
})
100100

101101
it('does not render theme selector for non-themable content', () => {

packages/embed-components/src/QuickEmbed/QuickEmbed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const QuickEmbed = ({ onClose }: QuickEmbedProps) => {
111111
<CopyToClipboard content={embedUrl}>
112112
<ButtonOutline iconBefore={<Link />}>Copy Link</ButtonOutline>
113113
</CopyToClipboard>
114-
<Button onClick={onClose}>Cancel</Button>
114+
<Button onClick={onClose}>Close</Button>
115115
</Space>
116116
</Section>
117117
)

0 commit comments

Comments
 (0)