Skip to content

Commit

Permalink
feat: updated InputLabel with latest Radix label component (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
wp-aberg committed Jan 10, 2024
1 parent df842ac commit 2ca485f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
25 changes: 24 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/input-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"react": "^16.8.6 || ^17.0.2 || ^18"
},
"dependencies": {
"@radix-ui/react-label": "^1.0.0",
"@radix-ui/react-label": "^2.0.2",
"@washingtonpost/wpds-input-shared": "1.17.0",
"@washingtonpost/wpds-theme": "1.17.0"
},
Expand Down
2 changes: 1 addition & 1 deletion ui/input-label/src/InputLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface InputLabelProps extends LabelProps {
required?: boolean;
}

export const InputLabel = React.forwardRef<HTMLSpanElement, InputLabelProps>(
export const InputLabel = React.forwardRef<HTMLLabelElement, InputLabelProps>(
({ children, css, disabled, required, ...props }, ref) => {
return (
<StyledLabel ref={ref} css={css} isDisabled={disabled} {...props}>
Expand Down

0 comments on commit 2ca485f

Please sign in to comment.