Skip to content

Commit

Permalink
fix: Deconstruct typelevel from props and pass to stencil (#3059)
Browse files Browse the repository at this point in the history
Deconstruct `typeLevel` from `elemProps` in `StatusIndicator.Label` to ensure type styles can be overwritten.

[category:Components]

Co-authored-by: manuel.carrera <manuel.carrera@workday.com>
  • Loading branch information
mannycarrera4 and manuel.carrera authored Nov 22, 2024
1 parent 5c9ceb5 commit d33fa8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const statusIndicatorLabelStencil = createStencil({

export const StatusIndicatorLabel = createComponent('span')({
displayName: 'StatusIndicator.Label',
Component: ({children, ...elemProps}: StatusIndicatorLabelProps, ref, Element) => {
Component: ({children, typeLevel, ...elemProps}: StatusIndicatorLabelProps, ref, Element) => {
return (
<Element ref={ref} {...mergeStyles(elemProps, statusIndicatorLabelStencil())}>
<Element ref={ref} {...mergeStyles(elemProps, statusIndicatorLabelStencil({typeLevel}))}>
{children}
</Element>
);
Expand Down

0 comments on commit d33fa8e

Please sign in to comment.