Skip to content

Commit

Permalink
UI review: remove title from Mailchimp block.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrabb committed Feb 9, 2019
1 parent 7e1f7ba commit 141d9f2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions client/gutenberg/extensions/mailchimp/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class MailchimpSubscribeEdit extends Component {
const { audition, connected, connectURL } = this.state;
const {
emailPlaceholder,
title,
submitLabel,
consentText,
processingLabel,
Expand Down Expand Up @@ -183,13 +182,6 @@ class MailchimpSubscribeEdit extends Component {
);
const blockContent = (
<div className={ className }>
<RichText
tagName="h3"
placeholder={ __( 'Write title' ) }
value={ title }
onChange={ value => setAttributes( { title: value } ) }
inlineToolbar
/>
{ ! audition && (
<form ref={ this.formRef }>
<TextControl placeholder={ emailPlaceholder } onChange={ () => false } />
Expand Down
4 changes: 0 additions & 4 deletions client/gutenberg/extensions/mailchimp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ export const settings = {
category: 'jetpack',
keywords: [ __( 'email' ), __( 'mailchimp' ), __( 'newsletter' ) ],
attributes: {
title: {
type: 'string',
default: __( 'Join my email list' ),
},
emailPlaceholder: {
type: 'string',
default: __( 'Enter your email' ),
Expand Down
4 changes: 0 additions & 4 deletions client/gutenberg/extensions/mailchimp/view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,4 @@
.wp-block-jetpack-mailchimp-form-error {
border: 1px solid #ff0000;
}
h3 {
font-size: 2em;
font-weight: bold;
}
}

0 comments on commit 141d9f2

Please sign in to comment.