@latte-macchiat-io/latte-vanilla-components 0.0.231 → 0.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -5,6 +5,7 @@ import { useState } from 'react';
|
|
5
5
|
|
6
6
|
import { modal, modalContentCloseButton, modalContentRecipe, type ModalVariants } from './styles.css';
|
7
7
|
|
8
|
+
import { themeContract } from '../../theme/contract.css';
|
8
9
|
import { Actions } from '../Actions';
|
9
10
|
import { Button } from '../Button';
|
10
11
|
import { Icon } from '../Icon';
|
@@ -30,7 +31,7 @@ export const Modal = ({ triggerLabel, className, children, align, withCloseButto
|
|
30
31
|
<div className={clsx(modalContentRecipe({ align }), className)}>
|
31
32
|
{withCloseButton && (
|
32
33
|
<button type="button" aria-label="Close modal" className={modalContentCloseButton} onClick={() => setIsOpen(false)}>
|
33
|
-
<Icon icon="close" />
|
34
|
+
<Icon icon="close" color={themeContract.modal.closeButtonColor} />
|
34
35
|
</button>
|
35
36
|
)}
|
36
37
|
{children}
|
@@ -545,6 +545,7 @@ export const themeContract = createGlobalThemeContract({
|
|
545
545
|
overlayBlur: 'latte-modal-overlayBlur',
|
546
546
|
overlayBackgroundColor: 'latte-modal-overlayBackgroundColor',
|
547
547
|
|
548
|
+
closeButtonColor: 'latte-modal-closeButtonColor',
|
548
549
|
closeButtonRightPosition: {
|
549
550
|
mobile: 'latte-modal-closeButtonRightPosition-mobile',
|
550
551
|
sm: 'latte-modal-closeButtonRightPosition-sm',
|