Skip to content

Commit aa2c86e

Browse files
authored
Remove Is Reskinned Flag: Remove from user and notice sections (#99112)
* Remove Is Reskinned Flag: Remove is reskinned flag from user and notice sections * Center notice * Fix snapshots
1 parent 1a4a11d commit aa2c86e

File tree

20 files changed

+17
-68
lines changed

20 files changed

+17
-68
lines changed

client/blocks/signup-form/index.jsx

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import FormPasswordInput from 'calypso/components/forms/form-password-input';
3232
import FormSettingExplanation from 'calypso/components/forms/form-setting-explanation';
3333
import FormTextInput from 'calypso/components/forms/form-text-input';
3434
import LoggedOutForm from 'calypso/components/logged-out-form';
35-
import LoggedOutFormBackLink from 'calypso/components/logged-out-form/back-link';
3635
import LoggedOutFormFooter from 'calypso/components/logged-out-form/footer';
3736
import LoggedOutFormLinkItem from 'calypso/components/logged-out-form/link-item';
3837
import LoggedOutFormLinks from 'calypso/components/logged-out-form/links';
@@ -724,7 +723,7 @@ class SignupForm extends Component {
724723
{ this.displayUsernameInput() && (
725724
<>
726725
<FormLabel htmlFor="username">
727-
{ this.props.isReskinned || ( this.props.isWoo && ! this.props.isWooJPC )
726+
{ this.props.isWoo && ! this.props.isWooJPC
728727
? this.props.translate( 'Username' )
729728
: this.props.translate( 'Choose a username' ) }
730729
</FormLabel>
@@ -1063,7 +1062,7 @@ class SignupForm extends Component {
10631062
}
10641063

10651064
footerLink() {
1066-
const { flowName, translate, isWoo, isBlazePro } = this.props;
1065+
const { isWoo, isBlazePro } = this.props;
10671066

10681067
if ( this.props.isP2Flow ) {
10691068
return (
@@ -1095,25 +1094,7 @@ class SignupForm extends Component {
10951094
);
10961095
}
10971096

1098-
return (
1099-
<>
1100-
{ ! this.props.isReskinned && (
1101-
<LoggedOutFormLinks>
1102-
<LoggedOutFormLinkItem href={ this.getLoginLink() }>
1103-
{ flowName === 'onboarding' || flowName === 'onboarding-pm'
1104-
? translate( 'Log in to create a site for your existing account.' )
1105-
: translate( 'Already have a WordPress.com account?' ) }
1106-
</LoggedOutFormLinkItem>
1107-
{ this.props.oauth2Client && (
1108-
<LoggedOutFormBackLink
1109-
oauth2Client={ this.props.oauth2Client }
1110-
recordClick={ this.recordBackLinkClick }
1111-
/>
1112-
) }
1113-
</LoggedOutFormLinks>
1114-
) }
1115-
</>
1116-
);
1097+
return null;
11171098
}
11181099

11191100
handleOnChangeAccount = () => {

client/blocks/time-mismatch-warning/test/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`TimeMismatchWarning to render if GMT offsets do not match 1`] = `
44
<div>
55
<div
66
aria-label="Notice"
7-
class="notice is-warning is-dismissable"
7+
class="notice is-reskinned is-warning is-dismissable"
88
role="status"
99
>
1010
<span

client/components/global-notices/test/__snapshots__/index.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`<GlobalNotices /> should render notices with the expected structure 1`]
88
>
99
<div
1010
aria-label="Notice"
11-
class="notice is-success is-dismissable"
11+
class="notice is-reskinned is-success is-dismissable"
1212
role="status"
1313
>
1414
<span

client/components/notice/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function MyNotice() {
2828
| `text` | `string` | null | The message that shows in the notice. |
2929
| `showDismiss` | `bool` | true | Whether to show a close action on the right of the notice. |
3030
| `isCompact` | `bool` | false | Whether this is a compact notice (smaller and not full width). |
31-
| `isReskinned` | `bool` | false | Whether to use the newer/updated version used for the plans pages. |
3231
| `duration` | `integer` | 0 | How long to show the notice for in milliseconds. |
3332
| `onDismissClick` | `function` | null | A function to call when the notice is dismissed. |
3433
| `children` | `string` | null | You can also pass the content on the notice within children. |

client/components/notice/index.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export class Notice extends Component {
3636
onDismissClick: noop,
3737
status: null,
3838
text: null,
39-
isReskinned: false,
4039
};
4140

4241
static propTypes = {
@@ -57,7 +56,6 @@ export class Notice extends Component {
5756
] ),
5857
text: PropTypes.node,
5958
translate: PropTypes.func.isRequired,
60-
isReskinned: PropTypes.bool,
6159
};
6260

6361
dismissTimeout = null;
@@ -119,13 +117,11 @@ export class Notice extends Component {
119117
status,
120118
text,
121119
translate,
122-
isReskinned,
123120
} = this.props;
124-
const classes = clsx( 'notice', status, className, {
121+
const classes = clsx( 'notice is-reskinned', status, className, {
125122
'is-compact': isCompact,
126123
'is-loading': isLoading,
127124
'is-dismissable': showDismiss,
128-
'is-reskinned': isReskinned,
129125
} );
130126

131127
let iconNeedsDrop = false;

client/components/notice/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
background: var(--color-neutral-80);
2222
color: var(--color-text-inverted);
2323
line-height: 1.5;
24+
align-items: center;
2425

2526
@include breakpoint-deprecated( ">660px" ) {
2627
margin-bottom: 24px;

client/jetpack-connect/test/__snapshots__/jetpack-connect-notices.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`JetpackConnectNotices Should render non-terminal notice if callback sup
77
>
88
<div
99
aria-label="Notice"
10-
class="notice is-warning"
10+
class="notice is-reskinned is-warning"
1111
role="status"
1212
>
1313
<span
@@ -49,7 +49,7 @@ exports[`JetpackConnectNotices Should render notice 1`] = `
4949
>
5050
<div
5151
aria-label="Notice"
52-
class="notice is-error"
52+
class="notice is-reskinned is-error"
5353
role="status"
5454
>
5555
<span

client/my-sites/plans-features-main/components/plan-notice-credit-update.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const PlanNoticeCreditUpgrade = ( { className, onDismissClick, siteId, visiblePl
4242
onDismissClick={ onDismissClick }
4343
icon="info-outline"
4444
status="is-success"
45-
isReskinned
4645
>
4746
{ translate(
4847
'You have {{b}}%(amountInCurrency)s{{/b}} in {{a}}upgrade credits{{/a}} available from your current plan. This credit will be applied to the pricing below at checkout if you upgrade today!',

client/my-sites/plans-features-main/components/plan-notice.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ export default function PlanNotice( props: PlanNoticeProps ) {
111111
onDismissClick={ handleDismissNotice }
112112
icon="info-outline"
113113
status="is-success"
114-
isReskinned
115114
>
116115
{ translate(
117116
'This plan was purchased by a different WordPress.com account. To manage this plan, log in to that account or contact the account owner.'
@@ -126,7 +125,6 @@ export default function PlanNotice( props: PlanNoticeProps ) {
126125
onDismissClick={ handleDismissNotice }
127126
icon="info-outline"
128127
status="is-warning"
129-
isReskinned
130128
>
131129
{ translate(
132130
'Your plan currently has a legacy feature that provides 200GB of space. ' +
@@ -153,7 +151,6 @@ export default function PlanNotice( props: PlanNoticeProps ) {
153151
onDismissClick={ handleDismissNotice }
154152
icon="info-outline"
155153
status="is-success"
156-
isReskinned
157154
>
158155
{ activeDiscount.plansPageNoticeTextTitle && (
159156
<strong>
@@ -178,7 +175,6 @@ export default function PlanNotice( props: PlanNoticeProps ) {
178175
<Notice
179176
className="plan-features-main__notice"
180177
showDismiss={ false }
181-
isReskinned
182178
icon="info-outline"
183179
status="is-error"
184180
text={ translate(
@@ -194,7 +190,6 @@ export default function PlanNotice( props: PlanNoticeProps ) {
194190
<Notice
195191
className="plan-features-main__notice"
196192
showDismiss={ false }
197-
isReskinned
198193
icon="info-outline"
199194
status="is-error"
200195
text={ translate(

client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,6 @@ export default function CampaignItemDetails( props: Props ) {
744744
<Main wideLayout className="campaign-item-details">
745745
{ status === 'rejected' && (
746746
<Notice
747-
isReskinned
748747
showDismiss={ false }
749748
status="is-error"
750749
icon="notice-outline"
@@ -777,7 +776,6 @@ export default function CampaignItemDetails( props: Props ) {
777776
{ status === 'suspended' && payment_links && payment_links.length > 0 && (
778777
<>
779778
<Notice
780-
isReskinned
781779
showDismiss={ false }
782780
status="is-error"
783781
icon="notice-outline"

0 commit comments

Comments
 (0)