Skip to content

Commit

Permalink
feat: add indicator bar
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecadavid committed Oct 1, 2024
1 parent de555f8 commit 2e26c6a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/ui-kit/src/components/Tabs/Tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { Tabs } from './Tabs'

const meta: Meta<typeof Tabs> = {
title: 'Components/Tabs',
tags: ['devOnly'],
argTypes: {
// Define any argTypes here if needed
}
tags: ['devOnly']
}

export default meta
Expand Down
2 changes: 2 additions & 0 deletions packages/ui-kit/src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This component is set as a server component

import React from 'react'
import { Tabs as TabsBase } from '@radix-ui/themes'
import { Card as CardBase } from '../Card'
Expand Down
8 changes: 7 additions & 1 deletion packages/ui-kit/src/components/Tabs/TabsCSS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ export const TabsCSS = () => {
display: block !important;
box-sizing: border-box;
inline-size: 100% !important;
position: relative !important;
border-radius: var(--propel-radius-5);
}
.rt-BaseTabList:has(.propel-Card) .rt-TabsTrigger::before {
display: none !important;
display: block;
position: absolute;
bottom: 0;
border-radius: var(--propel-radius-5);
z-index: 1;
}
.rt-BaseTabList:has(.propel-Card) .rt-TabsTrigger > .rt-TabsTriggerInner {
Expand Down

0 comments on commit 2e26c6a

Please sign in to comment.