From f7f74b080c33cb2c9fc4fd1cf86ca6cc427b271b Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Tue, 15 Nov 2022 12:23:47 -0800 Subject: [PATCH 1/2] [EuiTab] Fix standalone tabs not defaulting to a size --- .../tabs/__snapshots__/tab.test.tsx.snap | 14 +++++++------- src/components/tabs/tab.tsx | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/tabs/__snapshots__/tab.test.tsx.snap b/src/components/tabs/__snapshots__/tab.test.tsx.snap index 72d29f99bdc..4e549710b56 100644 --- a/src/components/tabs/__snapshots__/tab.test.tsx.snap +++ b/src/components/tabs/__snapshots__/tab.test.tsx.snap @@ -13,7 +13,7 @@ exports[`EuiTab props append is rendered 1`] = ` Append children @@ -29,7 +29,7 @@ exports[`EuiTab props disabled and selected 1`] = ` type="button" > Click Me @@ -45,7 +45,7 @@ exports[`EuiTab props disabled is rendered 1`] = ` type="button" > Click Me @@ -63,7 +63,7 @@ exports[`EuiTab props href renders anchor 1`] = ` role="tab" > children @@ -78,7 +78,7 @@ exports[`EuiTab props isSelected is rendered 1`] = ` type="button" > children @@ -95,7 +95,7 @@ exports[`EuiTab props onClick renders button 1`] = ` type="button" > children @@ -115,7 +115,7 @@ exports[`EuiTab props prepend is rendered 1`] = ` Prepend children diff --git a/src/components/tabs/tab.tsx b/src/components/tabs/tab.tsx index 3825375bbe2..c05b0d000c0 100644 --- a/src/components/tabs/tab.tsx +++ b/src/components/tabs/tab.tsx @@ -69,7 +69,7 @@ export const EuiTab: FunctionComponent = ({ rel, prepend, append, - size, + size = 'm', expand, ...rest }) => { From ff3db8c2196014c28a240318c5f5ad6eb9b87381 Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Tue, 15 Nov 2022 13:27:44 -0800 Subject: [PATCH 2/2] changelog --- upcoming_changelogs/6366.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 upcoming_changelogs/6366.md diff --git a/upcoming_changelogs/6366.md b/upcoming_changelogs/6366.md new file mode 100644 index 00000000000..92afa3a9b71 --- /dev/null +++ b/upcoming_changelogs/6366.md @@ -0,0 +1,3 @@ +**Bug fixes** + +- Fixed `EuiTab` not defaulting to size `m`