Skip to content

Commit

Permalink
Add/social modal description (#38927)
Browse files Browse the repository at this point in the history
* Add description to the social modal

* changelog

* Update text

* Fixup versions
  • Loading branch information
gmjuhasz authored Aug 19, 2024
1 parent 1af3272 commit 09d79b1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Added a description for the social modal
2 changes: 1 addition & 1 deletion projects/js-packages/publicize-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-publicize-components",
"version": "0.60.1-alpha",
"version": "0.61.0-alpha",
"description": "A library of JS components required by the Publicize editor plugin",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export function SettingsSection() {
<h2>{ __( 'Social Preview', 'jetpack' ) }</h2>
</div>
<div className={ styles[ 'settings-content' ] }>
<p className={ styles[ 'modal-description' ] }>
{ __( 'Edit and preview your social post before sharing.', 'jetpack' ) }
</p>
<SharePostForm analyticsData={ { location: 'preview-modal' } } />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}

.settings-content {
padding: 2rem;
padding: 1rem 2rem;

@include break-medium {
border-inline-end: 1px solid var(--studio-gray-5);
Expand Down Expand Up @@ -97,3 +97,8 @@
.disabled-tab {
opacity: 0.5;
}

.modal-description {
color: var(--jp-gray-40);
margin-top: 0;
}

0 comments on commit 09d79b1

Please sign in to comment.