Skip to content

Commit

Permalink
Fix no footer modal border (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov authored Nov 23, 2023
1 parent 2aca796 commit 13d7e2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions utils/gear-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/gear-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gear-js/ui",
"version": "0.5.20",
"version": "0.5.21",
"description": "React UI components used across Gear applications",
"author": "Gear Technologies",
"license": "GPL-3.0",
Expand Down
5 changes: 5 additions & 0 deletions utils/gear-ui/src/components/Modal/Modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
background-color: #29292b;
border-left: $borderModal;
border-right: $borderModal;

&.withoutFooter {
border-bottom: $borderModal;
border-radius: 0 0 $borderRadiusMedium $borderRadiusMedium;
}
}

.footer {
Expand Down
2 changes: 1 addition & 1 deletion utils/gear-ui/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Modal = ({ heading, close, children, footer, className, size = 'normal' }:
const { bodyStyle, headerRef, footerRef } = useMaxHeight();

const modalClassName = clsx(styles.modal, styles[size]);
const bodyClassName = clsx(styles.body, className);
const bodyClassName = clsx(styles.body, className, !footer && styles.withoutFooter);

const handleOverlayClick = ({ target, currentTarget }: MouseEvent) => {
if (target === currentTarget) close();
Expand Down

0 comments on commit 13d7e2e

Please sign in to comment.