docs: fix details component + other styling fixes (#5217)

* docs: fix details component

* general styling fixes
This commit is contained in:
Shahed Nasser
2023-09-26 19:03:07 +03:00
committed by GitHub
parent bc42b201ea
commit dee3419fe8
4 changed files with 15 additions and 5 deletions
@@ -15,6 +15,7 @@ export type DetailsSummaryProps = {
export const DetailsSummary = ({
title,
subtitle,
children,
badge,
expandable = true,
open = false,
@@ -40,7 +41,7 @@ export const DetailsSummary = ({
titleClassName
)}
>
{title}
{title || children}
</span>
{subtitle && (
<span className="text-compact-medium text-medusa-fg-subtle">