From b463fbebd1f739a37dfe5fbd3b907d1f7724deba Mon Sep 17 00:00:00 2001 From: Nikhil kumar gupta <36965562+nikhilgupta58@users.noreply.github.com> Date: Tue, 11 Jan 2022 20:59:35 +0530 Subject: [PATCH] feature Update tabs-item.tsx (#658) * feat(tabs): display hover effect by styles Add highlight on Tabs component #653 * feat: redesign the render mode for tabs-item * test(tabs): update snapshots for styles changes * docs(tabs): append leftSpace attribute Co-authored-by: nikhilgupta58 Co-authored-by: unix --- .../__snapshots__/index.test.tsx.snap | 152 ++++++++++++------ components/tabs/tabs-context.ts | 4 +- components/tabs/tabs-item.tsx | 60 ++++--- components/tabs/tabs.tsx | 11 +- pages/en-us/components/tabs.mdx | 19 +-- pages/zh-cn/components/tabs.mdx | 21 ++- 6 files changed, 168 insertions(+), 99 deletions(-) diff --git a/components/tabs/__tests__/__snapshots__/index.test.tsx.snap b/components/tabs/__tests__/__snapshots__/index.test.tsx.snap index b2efa3dcb..9ff919bea 100644 --- a/components/tabs/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/tabs/__tests__/__snapshots__/index.test.tsx.snap @@ -3,27 +3,47 @@ exports[`Tabs should render correctly 1`] = ` "
label1
label2