Skip to content

Commit

Permalink
refactor: use css
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecadavid committed Sep 24, 2024
1 parent 7dcbbda commit ecec579
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/ui-kit/src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Tabs as TabsBase } from '@radix-ui/themes'
import { Card as CardBase } from '../Card'
import '@radix-ui/themes/styles.css'
import './styles.scss'
import './styles.css'

type TabsBase = typeof TabsBase

Expand Down
20 changes: 20 additions & 0 deletions packages/ui-kit/src/components/Tabs/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.rt-BaseTabList:has(.propel-Card) {
all: unset;
width: 100%;
}

.rt-BaseTabList:has(.propel-Card) .rt-TabsTrigger {
all: unset !important;
display: block !important;
box-sizing: border-box;
inline-size: 100% !important;
}

.rt-BaseTabList:has(.propel-Card) .rt-TabsTrigger > .rt-TabsTriggerInner {
all: unset !important;
display: block !important;
}

.rt-BaseTabList:has(.propel-Card) .rt-TabsTrigger > .rt-TabsTriggerInnerHidden {
display: none;
}
22 changes: 0 additions & 22 deletions packages/ui-kit/src/components/Tabs/styles.scss

This file was deleted.

0 comments on commit ecec579

Please sign in to comment.