Skip to content

Commit

Permalink
design fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Nov 22, 2023
1 parent a93cd6e commit 11344f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions www/apps/docs/src/theme/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ function TabList({
"tabs",
"list-none",
isCodeTabs && "no-scrollbar",
!isCodeTabs && "overflow-visible",
!isCodeTabs &&
"overflow-visible border-0 border-b border-solid border-medusa-border-base pb-1",
className
)}
>
Expand All @@ -156,13 +157,15 @@ function TabList({
"text-medusa-code-text-base border border-solid border-medusa-code-border bg-medusa-code-bg-base xs:!border-none xs:!bg-transparent",
attributes?.badge &&
"[&_.badge]:ml-0.5 [&_.badge]:py-0.125 [&_.badge]:px-[6px] [&_.badge]:rounded-full pl-0.75 pr-0.25",
!attributes?.badge && "px-0.75",
],
!isCodeTabs && [
"[&:not(:last-child)]:mr-0.5 px-0.75 py-[6px] txt-compact-small-plus",
"border-0 rounded-full transition-shadow duration-200 ease-ease",
selectedValue === value &&
"text-medusa-fg-base shadow-card-rest dark:shadow-card-rest-dark",
selectedValue !== value && "text-medusa-fg-subtle ",
selectedValue !== value &&
"text-medusa-fg-subtle hover:text-medusa-fg-base",
"flex gap-0.5",
],
"!mt-0 cursor-pointer",
Expand Down Expand Up @@ -248,7 +251,8 @@ export default function Tabs(props: TabsProps): JSX.Element {
className={clsx(
"tabs-wrapper",
props.wrapperClassName,
isCodeTabs && "code-tabs"
isCodeTabs && "code-tabs",
!isCodeTabs && "my-4"
)}
>
<TabsComponent
Expand Down

0 comments on commit 11344f4

Please sign in to comment.