Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change TabNavItem,TopNavActions background color & update examples [FC-1234] #2465

Merged
merged 7 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading