Skip to content

Commit 6aae282

Browse files
authored
chore: change TabNavItem,TopNavActions background color & update examples [FC-1234] (#2465)
* feat: tabNavItem background color update * chore: add change set * chore: change bg color of topNavActions * feat: updated examples * chore: update changeset * chore: update changeset * chore: updated snaps
1 parent c676f3e commit 6aae282

File tree

7 files changed

+15
-10
lines changed

7 files changed

+15
-10
lines changed

.changeset/five-jeans-look.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@razorpay/blade': patch
3+
---
4+
5+
chore(blade): change TabNavItem,TopNavActions background color & update examples

packages/blade/src/components/TopNav/TabNav/TabNavItem.web.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const StyledTabNavItemWrapper = styled(BaseBox)<{
6969
position: 'relative',
7070
flexShrink: 0,
7171
padding: `${makeSpace(theme.spacing[2])} ${makeSpace(theme.spacing[1])}`,
72-
backgroundColor: isActive ? theme.colors.surface.background.gray.intense : 'transparent',
72+
backgroundColor: isActive ? theme.colors.surface.background.gray.moderate : 'transparent',
7373
borderColor: isActive ? theme.colors.surface.border.gray.muted : 'transparent',
7474
borderStyle: 'solid',
7575
borderWidth: makeBorderSize(theme.border.width.thin),

packages/blade/src/components/TopNav/TopNav.web.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const TopNavActions = ({ children }: { children: React.ReactNode }): React.React
110110
alignItems="center"
111111
marginTop="spacing.1"
112112
padding="spacing.3"
113-
backgroundColor="surface.background.gray.intense"
113+
backgroundColor="surface.background.gray.moderate"
114114
borderTopLeftRadius="medium"
115115
borderTopRightRadius="medium"
116116
{...metaAttribute({ name: MetaConstants.TopNavActions })}

packages/blade/src/components/TopNav/__tests__/__snapshots__/TopNav.ssr.test.tsx.snap

+2-2
Large diffs are not rendered by default.

packages/blade/src/components/TopNav/__tests__/__snapshots__/TopNav.web.test.tsx.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ exports[`TopNav it shpuld support adding test Id 1`] = `
125125
padding: 8px;
126126
margin-top: 2px;
127127
gap: 8px;
128-
background-color: hsla(0,0%,100%,1);
128+
background-color: hsla(210,40%,98%,1);
129129
border-top-left-radius: 4px;
130130
border-top-right-radius: 4px;
131131
}
@@ -904,7 +904,7 @@ exports[`TopNav should render 1`] = `
904904
padding: 8px;
905905
margin-top: 2px;
906906
gap: 8px;
907-
background-color: hsla(0,0%,100%,1);
907+
background-color: hsla(210,40%,98%,1);
908908
border-top-left-radius: 4px;
909909
border-top-right-radius: 4px;
910910
}
@@ -1683,7 +1683,7 @@ exports[`TopNav should support data analytics attributes 1`] = `
16831683
padding: 8px;
16841684
margin-top: 2px;
16851685
gap: 8px;
1686-
background-color: hsla(0,0%,100%,1);
1686+
background-color: hsla(210,40%,98%,1);
16871687
border-top-left-radius: 4px;
16881688
border-top-right-radius: 4px;
16891689
}

packages/blade/src/components/TopNav/docs/TopNav.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ const TopNavFullExample = () => {
459459
height="100vh"
460460
padding="spacing.5"
461461
overflowY="scroll"
462-
backgroundColor="surface.background.gray.intense"
462+
backgroundColor="surface.background.gray.moderate"
463463
>
464464
<Box width={{ base: 'max-content', m: '100%' }} height="200vh">
465465
<Text weight="semibold">Active URL: {activeUrl}</Text>
@@ -603,7 +603,7 @@ const TopNavMinimalTemplate: StoryFn<typeof TopNav> = () => {
603603
</TopNav>
604604
</BaseBox>
605605

606-
<Box paddingY="spacing.4" backgroundColor="surface.background.gray.intense" height="100%">
606+
<Box paddingY="spacing.4" backgroundColor="surface.background.gray.moderate" height="100%">
607607
<Text margin="spacing.5">
608608
This is a minimal example usage of TopNav, checkout Full Dashboard Layout example for
609609
other features & integration details.

packages/blade/src/components/TopNav/docs/code.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export const topNavFullExample = {
356356
height="100vh"
357357
padding="spacing.5"
358358
overflowY="scroll"
359-
backgroundColor="surface.background.gray.intense"
359+
backgroundColor="surface.background.gray.moderate"
360360
>
361361
<Box width={{ base: "max-content", m: "100%" }} height="200vh">
362362
<Text marginBottom="spacing.4">This demo integrates:</Text>

0 commit comments

Comments
 (0)