[typescript] Can't pass partial BackdropProps to Modal component #10146
Labels
component: modal
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
typescript
During the revamp in #9613, the various Modal Backdrop props were consolidated into
BackdropProps
. This is a great improvement, however the TypeScript declaration file specifiesBackdropProps?: BackdropProps
in the Modal props. This becomes an issue sinceBackdropProps
has a requiredopen
prop, which makes it a little clunky to use from the context of a Modal component.I propose we change Modal.d.ts to
BackdropProps?: Partial<BackdropProps>
.The text was updated successfully, but these errors were encountered: