Skip to content

Commit

Permalink
Newsletter: Plugin: Fixsend test email modal layout (#38934)
Browse files Browse the repository at this point in the history
* Fix input and CTA layout

* changelog
  • Loading branch information
crisbusquets authored Aug 16, 2024
1 parent 69b12fd commit 97e6592
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Email preview: ensure the email is visible
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useAnalytics } from '@automattic/jetpack-shared-extension-utils';
import apiFetch from '@wordpress/api-fetch';
import {
Button,
__experimentalGrid as Grid, // eslint-disable-line @wordpress/no-unsafe-wp-apis
__experimentalHStack as HStack, // eslint-disable-line @wordpress/no-unsafe-wp-apis
__experimentalVStack as VStack, // eslint-disable-line @wordpress/no-unsafe-wp-apis
Modal,
Expand Down Expand Up @@ -82,12 +83,11 @@ export function NewsletterTestEmailModal( { isOpen, onClose } ) {
'jetpack'
) }
</p>
<HStack wrap={ true }>
<Grid alignment="bottom" columns={ 2 } gap={ 2 } templateColumns="2fr auto;">
<InputControl
value={ window?.Jetpack_Editor_Initial_State?.tracksUserData?.email }
disabled
__next40pxDefaultSize={ true }
size="__unstable-large"
/>
<Button
variant="primary"
Expand All @@ -98,7 +98,7 @@ export function NewsletterTestEmailModal( { isOpen, onClose } ) {
{ __( 'Send', 'jetpack' ) }
<Icon icon={ SendIcon } />
</Button>
</HStack>
</Grid>
</>
) }
</VStack>
Expand Down

0 comments on commit 97e6592

Please sign in to comment.