Skip to content

Commit

Permalink
fix(Modal): properly handle data-bs-theme attribute (#6743)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilame committed Dec 27, 2023
1 parent 0f6ab33 commit 1ead9ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Modal.tsx
Expand Up @@ -217,6 +217,7 @@ const propTypes = {
*/
container: PropTypes.any,

'data-bs-theme': PropTypes.string,
'aria-labelledby': PropTypes.string,
'aria-describedby': PropTypes.string,
'aria-label': PropTypes.string,
Expand All @@ -243,6 +244,7 @@ const Modal: BsPrefixRefForwardingComponent<'div', ModalProps> =
contentClassName,
children,
dialogAs: Dialog = ModalDialog,
'data-bs-theme': dataBsTheme,
'aria-labelledby': ariaLabelledby,
'aria-describedby': ariaDescribedby,
'aria-label': ariaLabel,
Expand Down Expand Up @@ -454,6 +456,7 @@ const Modal: BsPrefixRefForwardingComponent<'div', ModalProps> =
)}
onClick={backdrop ? handleClick : undefined}
onMouseUp={handleMouseUp}
data-bs-theme={dataBsTheme}
aria-label={ariaLabel}
aria-labelledby={ariaLabelledby}
aria-describedby={ariaDescribedby}
Expand Down

0 comments on commit 1ead9ca

Please sign in to comment.