Fixing navigation and visual issues (#6067)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Leo GiovanettiandPeer Richelsen authored and GitHub committed 2022-12-18 10:56:21 +00:00
1 parent 205f73c4bc
commit 34fe1c4a95
6 files changed
+46 -22

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ function WizardForm<T extends DefaultStep>(props: {
<p className="text-sm text-gray-500">{currentStep.description}</p>
</div>
<div className="print:p-none px-4 py-5 sm:p-6">{currentStep.content}</div>
<div className="print:p-none max-w-3xl px-4 py-5 sm:p-6">{currentStep.content}</div>
{!props.disableNavigation && (
<>
{currentStep.enabled !== false && (
@@ -10,6 +10,7 @@ export interface NavTabProps {
className?: string;
sticky?: boolean;
linkProps?: VerticalTabItemProps["linkProps"];
itemClassname?: string;
}
const NavTabs = function ({ tabs, className = "", sticky, linkProps, ...props }: NavTabProps) {
@@ -25,7 +26,7 @@ const NavTabs = function ({ tabs, className = "", sticky, linkProps, ...props }:
{sticky && <div className="pt-6" />}
{props.children}
{tabs.map((tab, idx) => (
<VerticalTabItem {...tab} key={idx} linkProps={linkProps} />
<VerticalTabItem {...tab} key={idx} linkProps={linkProps} className={props.itemClassname} />
))}
</nav>
);