Skip to content

Commit

Permalink
fix(user-dialog): fix missing positioning styles on the user dialog (#…
Browse files Browse the repository at this point in the history
…3404)

* fix(user-dialog): fix missing positioning styles on the user dialog

* chore: changeset
  • Loading branch information
SiTaggart committed Aug 11, 2023
1 parent 8562d79 commit 81b4c3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/nervous-hats-love.md
@@ -0,0 +1,6 @@
---
'@twilio-paste/user-dialog': patch
'@twilio-paste/core': patch
---

[User Dialog] Fix the positioning of the user dialog by adding back the passing down of calculted styles to Box
Expand Up @@ -11,11 +11,12 @@ import type {UserDialogProps, UserDialogPopoverProps, UserDialogButtonProps} fro
import {UserDialogContext} from './UserDialogContainer';

// styled popover for UserDialog Non Modal Dialog Primitive
const UserDialogPopover = React.forwardRef<HTMLDivElement, UserDialogPopoverProps>((props, ref) => {
const UserDialogPopover = React.forwardRef<HTMLDivElement, UserDialogPopoverProps>(({style, ...props}, ref) => {
return (
<Box
{...safelySpreadBoxProps(props)}
ref={ref}
style={style}
boxShadow="shadow"
borderWidth="borderWidth10"
borderColor="colorBorderWeaker"
Expand Down
4 changes: 1 addition & 3 deletions packages/paste-core/components/user-dialog/src/types.ts
Expand Up @@ -24,9 +24,7 @@ export interface UserDialogUserTextProps extends HTMLPasteProps<'div'> {
element?: BoxProps['element'];
}

export interface UserDialogPopoverProps extends HTMLPasteProps<'div'> {
element?: BoxProps['element'];
}
export type UserDialogPopoverProps = BoxProps;

export type UserDialogStateReturn = NonModalDialogPrimitiveStateReturn;

Expand Down

0 comments on commit 81b4c3f

Please sign in to comment.