Skip to content

Commit

Permalink
implement new size prop with a fixed height
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Oct 26, 2023
1 parent 820b135 commit abbf27e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function FontLibraryModal( {
<Modal
title={ __( 'Fonts' ) }
onRequestClose={ onRequestClose }
isFullScreen
size="large"
className="font-library-modal"
>
<TabPanel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.font-library-modal {
// @todo: If a new prop is added to the Modal component that constrains
// the content width, we should use that prop instead of this style.
// see https://github.com/WordPress/gutenberg/issues/54471.
// @todo: If a new prop is added to the Modal component that fixes the height
// and/or constrains the origin, we should use that instead of this style.
// see https://github.com/WordPress/gutenberg/issues/55062.
&.font-library-modal {

@include break-medium() {
width: 65vw;
height: calc(100% - #{ $grid-unit-50 * 2 }); /* match full-screen `Modal` height */
max-height: none;
}
}

Expand Down

0 comments on commit abbf27e

Please sign in to comment.