-
- {pages[page]}
-
+
+ {pages[page]}
- {icon}
+ {!isOpen && icon}
{isOpen && label}
);
diff --git a/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.styles.tsx b/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.styles.tsx
index b9c9503a08..593fada569 100644
--- a/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.styles.tsx
+++ b/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.styles.tsx
@@ -1,8 +1,9 @@
-import { createClasses } from "@hitachivantara/uikit-react-core";
+import { createClasses, theme } from "@hitachivantara/uikit-react-core";
export const { staticClasses, useClasses } = createClasses("HvStep", {
root: {},
ghost: {
+ fontWeight: theme.fontWeights.semibold,
"&:hover": {
backgroundColor: "transparent",
},
diff --git a/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.tsx b/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.tsx
index a526e1fecb..b8a6fefed9 100644
--- a/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.tsx
+++ b/packages/lab/src/StepNavigation/DefaultNavigation/Step/Step.tsx
@@ -2,8 +2,8 @@ import {
ExtractNames,
HvAvatar,
HvBaseProps,
- HvButton,
- HvButtonProps,
+ HvButtonBase,
+ HvButtonBaseProps,
HvSize,
} from "@hitachivantara/uikit-react-core";
import {
@@ -20,7 +20,7 @@ import { useClasses } from "./Step.styles";
type HvStepClasses = ExtractNames;
export interface HvStepProps
- extends Pick,
+ extends Pick,
Omit {
/** A Jss Object used to override or extend the styles applied to the empty state StepNavigation. */
classes?: HvStepClasses;
@@ -92,8 +92,7 @@ export const HvStep = ({
const backgroundColor = getColor(state);
- const color = state === "Pending" ? "atmo2" : undefined;
- const semantic = state !== "Pending" ? getSemantic(state) : undefined;
+ const color = state === "Pending" ? "atmo2" : getSemantic(state);
const status = state === "Current" ? "secondary_60" : undefined;
const IconComponent = iconStateObject[state];
@@ -107,13 +106,11 @@ export const HvStep = ({
className,
)}
>
-
@@ -126,16 +123,14 @@ export const HvStep = ({
{IconComponent ? (
) : (
number
)}
-
+
);
};