Skip to content

Commit

Permalink
AI Featured Image: add feedback link on footer (#36831)
Browse files Browse the repository at this point in the history
* Include footer with provide feedback link on modal

* Fix top margin to follow the margin pattern of 32px

* changelog
  • Loading branch information
lhkowalski authored Apr 11, 2024
1 parent d06f256 commit d9e3e59
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

AI Featured Image: include link to provide feedback on the footer of the modal.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Button } from '@wordpress/components';
import { useDispatch, useSelect } from '@wordpress/data';
import { useCallback, useRef, useState } from '@wordpress/element';
import { __, sprintf } from '@wordpress/i18n';
import { Icon, external } from '@wordpress/icons';
/**
* Internal dependencies
*/
Expand Down Expand Up @@ -301,6 +302,17 @@ export default function FeaturedImage( { busy, disabled }: { busy: boolean; disa
</div>
</div>
</div>
<div className="ai-assistant-featured-image__footer">
<Button
variant="link"
className="ai-assistant-featured-image__feedback-button"
href="https://jetpack.com/redirect/?source=jetpack-ai-feedback"
target="_blank"
>
<span>{ __( 'Provide feedback', 'jetpack' ) }</span>
<Icon icon={ external } className="icon" />
</Button>
</div>
</AiAssistantModal>
) }
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.ai-assistant-featured-image {
&__content {
display: flex;
margin-top: 8px;
margin-top: 32px;
flex-direction: column;
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -38,4 +38,31 @@
margin-bottom: 8px;
}
}

&__footer {
display: flex;
justify-content: flex-start;
margin-right: -32px;
margin-left: -32px;
margin-top: 32px;
margin-bottom: -32px;
padding: 8px 32px;
border-top: solid 1px #DCDCDE;
height: 60px;

&__feedback-button {
display: inline-block;

a {
text-decoration: none;
}
}

.icon {
width: 20px;
height: 20px;
color: var(--studio-gray-20);
margin-left: 4px;
}
}
}

0 comments on commit d9e3e59

Please sign in to comment.