Skip to content

fix(modal): fix color in dark theme #978

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/modal/src/components/closer/Component.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React, { ButtonHTMLAttributes, FC, useCallback, useContext } from 'react';
import cn from 'classnames';
import { Button } from '@alfalab/core-components-button';

import { IconButton } from '@alfalab/core-components-icon-button';
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';

import { ModalContext } from '../../Context';

Expand Down Expand Up @@ -34,9 +36,9 @@ export const Closer: FC<CloserProps> = ({ className, fullscreen, align, ...restP
);

return (
<Button
<IconButton
icon={CrossMIcon}
type='button'
view='ghost'
className={cn(
styles.closer,
className,
Expand Down
3 changes: 0 additions & 3 deletions packages/modal/src/components/closer/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
.closer {
width: 48px;
height: 48px;
background-image: var(--modal-closer-icon);
background-position: center;
background-repeat: no-repeat;
flex-shrink: 0;
transition: opacity 0.2s ease-out;

Expand Down
2 changes: 1 addition & 1 deletion packages/modal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"@alfalab/core-components-*": ["../*/src"]
}
},
"references": [{ "path": "../base-modal" }, { "path": "../mq" }, { "path": "../button" }]
"references": [{ "path": "../base-modal" }, { "path": "../mq" }, { "path": "../icon-button" }]
}