Skip to content

Commit

Permalink
feat(Tabs): change css properties to use constraints from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
itsweliton committed Jun 21, 2021
1 parent 0898602 commit 1f3c1f5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ const Tabs = ({

export interface TabButtonProps {
title: string
// children: React.ReactNode
// className?: HTMLAttributes<HTMLDivElement>["className"]
}

const TabButton = ({ title }: TabButtonProps) => {
Expand All @@ -77,7 +75,6 @@ const TabButton = ({ title }: TabButtonProps) => {
sx={{
px: 6,
py: 2,
variant: "text.body1",
cursor: "pointer",
position: "relative",
overflow: "hidden",
Expand Down Expand Up @@ -132,8 +129,8 @@ const TabPanel = ({ children, index }: TabPanelProps) => {
position: "relative",
py: 5,
px: 6,
borderRadius: "12px",
borderTopLeftRadius: openIndex == 0 && isOpen ? "0" : "12px",
borderRadius: 3,
borderTopLeftRadius: openIndex == 0 && isOpen ? 0 : 3,
border: "1px solid",
borderColor: "text.90",
backgroundColor: "text.95",
Expand Down

0 comments on commit 1f3c1f5

Please sign in to comment.