Skip to content

Commit

Permalink
chore: change TabNavItem,TopNavActions background color & update exam…
Browse files Browse the repository at this point in the history
…ples [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
  • Loading branch information
tewarig authored Jan 9, 2025
1 parent c676f3e commit 6aae282
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-jeans-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@razorpay/blade': patch
---

chore(blade): change TabNavItem,TopNavActions background color & update examples
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const StyledTabNavItemWrapper = styled(BaseBox)<{
position: 'relative',
flexShrink: 0,
padding: `${makeSpace(theme.spacing[2])} ${makeSpace(theme.spacing[1])}`,
backgroundColor: isActive ? theme.colors.surface.background.gray.intense : 'transparent',
backgroundColor: isActive ? theme.colors.surface.background.gray.moderate : 'transparent',
borderColor: isActive ? theme.colors.surface.border.gray.muted : 'transparent',
borderStyle: 'solid',
borderWidth: makeBorderSize(theme.border.width.thin),
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/TopNav/TopNav.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const TopNavActions = ({ children }: { children: React.ReactNode }): React.React
alignItems="center"
marginTop="spacing.1"
padding="spacing.3"
backgroundColor="surface.background.gray.intense"
backgroundColor="surface.background.gray.moderate"
borderTopLeftRadius="medium"
borderTopRightRadius="medium"
{...metaAttribute({ name: MetaConstants.TopNavActions })}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ exports[`TopNav it shpuld support adding test Id 1`] = `
padding: 8px;
margin-top: 2px;
gap: 8px;
background-color: hsla(0,0%,100%,1);
background-color: hsla(210,40%,98%,1);
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
Expand Down Expand Up @@ -904,7 +904,7 @@ exports[`TopNav should render 1`] = `
padding: 8px;
margin-top: 2px;
gap: 8px;
background-color: hsla(0,0%,100%,1);
background-color: hsla(210,40%,98%,1);
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
Expand Down Expand Up @@ -1683,7 +1683,7 @@ exports[`TopNav should support data analytics attributes 1`] = `
padding: 8px;
margin-top: 2px;
gap: 8px;
background-color: hsla(0,0%,100%,1);
background-color: hsla(210,40%,98%,1);
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/blade/src/components/TopNav/docs/TopNav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ const TopNavFullExample = () => {
height="100vh"
padding="spacing.5"
overflowY="scroll"
backgroundColor="surface.background.gray.intense"
backgroundColor="surface.background.gray.moderate"
>
<Box width={{ base: 'max-content', m: '100%' }} height="200vh">
<Text weight="semibold">Active URL: {activeUrl}</Text>
Expand Down Expand Up @@ -603,7 +603,7 @@ const TopNavMinimalTemplate: StoryFn<typeof TopNav> = () => {
</TopNav>
</BaseBox>

<Box paddingY="spacing.4" backgroundColor="surface.background.gray.intense" height="100%">
<Box paddingY="spacing.4" backgroundColor="surface.background.gray.moderate" height="100%">
<Text margin="spacing.5">
This is a minimal example usage of TopNav, checkout Full Dashboard Layout example for
other features & integration details.
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/TopNav/docs/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export const topNavFullExample = {
height="100vh"
padding="spacing.5"
overflowY="scroll"
backgroundColor="surface.background.gray.intense"
backgroundColor="surface.background.gray.moderate"
>
<Box width={{ base: "max-content", m: "100%" }} height="200vh">
<Text marginBottom="spacing.4">This demo integrates:</Text>
Expand Down

0 comments on commit 6aae282

Please sign in to comment.