Fix <Modal> footers with long-text or lots of buttons
This commit is contained in:
parent
6664315e3a
commit
7038a3f3ab
9 changed files with 48 additions and 20 deletions
|
@ -85,7 +85,7 @@ export function Modal({
|
|||
);
|
||||
}
|
||||
|
||||
Modal.Footer = ({
|
||||
Modal.ButtonFooter = ({
|
||||
children,
|
||||
moduleClassName,
|
||||
}: Readonly<{
|
||||
|
@ -93,7 +93,10 @@ Modal.Footer = ({
|
|||
moduleClassName?: string;
|
||||
}>): ReactElement => (
|
||||
<div
|
||||
className={getClassNamesFor(BASE_CLASS_NAME, moduleClassName)('__footer')}
|
||||
className={getClassNamesFor(
|
||||
BASE_CLASS_NAME,
|
||||
moduleClassName
|
||||
)('__button-footer')}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue