diff --git a/docs/tests/Components.stories.tsx b/docs/tests/Components.stories.tsx index 3e5099c4a7..f08875ee32 100644 --- a/docs/tests/Components.stories.tsx +++ b/docs/tests/Components.stories.tsx @@ -109,7 +109,7 @@ export const Test: StoryObj = { style={{ alignItems: "start", justifyContent: "start" }} >
-
+
{renderStory(AccordionDisabledStory, context)} {renderStory(DotPaginationMainStory, context)} {renderStory(DropDownMenuMainStory, context)} diff --git a/packages/core/src/Badge/Badge.styles.tsx b/packages/core/src/Badge/Badge.styles.tsx index 4bc43ee7e7..297839cdc7 100644 --- a/packages/core/src/Badge/Badge.styles.tsx +++ b/packages/core/src/Badge/Badge.styles.tsx @@ -2,7 +2,19 @@ import { createClasses } from "@hitachivantara/uikit-react-utils"; import { theme } from "@hitachivantara/uikit-styles"; export const { staticClasses, useClasses } = createClasses("HvBadge", { - root: { position: "relative", "&>*": { float: "left" } }, + root: { + position: "relative", + "&>*": { float: "left" }, + ":has($badgeIcon)": { + width: "fit-content", + height: "fit-content", + "&>div:first-child": { + minWidth: 32, + minHeight: 32, + "--icsize": "100%", + }, + }, + }, /** class applied to the badge container when it has content */ badgeContainer: { width: 0 }, /** class applied to the badge */ diff --git a/packages/core/src/DotPagination/DotPagination.stories.tsx b/packages/core/src/DotPagination/DotPagination.stories.tsx index 898df642c6..5458162d07 100644 --- a/packages/core/src/DotPagination/DotPagination.stories.tsx +++ b/packages/core/src/DotPagination/DotPagination.stories.tsx @@ -21,7 +21,6 @@ const meta: Meta = { export default meta; const styles = { - container: css({ width: "100%", justifyContent: "center" }), page: css({ textAlign: "center" }), }; @@ -42,10 +41,8 @@ export const Main: StoryObj = { ]; return ( -
-
- {pages[page]} -
+
+ {pages[page]}
= { }; return ( -
-
- {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 )} - +
); };