Skip to content

Commit

Permalink
Prefix with jetpack-
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jul 2, 2019
1 parent 1157ae6 commit 4d6617b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions extensions/shared/upgrade-nudge/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ import './store';
import './style.scss';

const UpgradeNudge = ( { feature, plan, planName } ) => (
<div className="upgrade-nudge">
<Gridicon className="upgrade-nudge__icon" icon="star" size={ 18 } />
<div className="upgrade-nudge__info">
<span className="upgrade-nudge__title">
<div className="jetpack-upgrade-nudge">
<Gridicon className="jetpack-upgrade-nudge__icon" icon="star" size={ 18 } />
<div className="jetpack-upgrade-nudge__info">
<span className="jetpack-upgrade-nudge__title">
{ sprintf( __( 'Upgrade to %(planName)s', 'jetpack' ), {
planName,
} ) }
</span>
<span className="upgrade-nudge__message">
<span className="jetpack-upgrade-nudge__message">
{ __( 'To make this block visible on your site', 'jetpack' ) }
</span>
</div>
<Button
className="upgrade-nudge__button"
className="jetpack-upgrade-nudge__button"
href={ addQueryArgs( `https://wordpress.com/plans/${ getSiteFragment() }`, {
feature,
plan,
Expand Down
10 changes: 5 additions & 5 deletions extensions/shared/upgrade-nudge/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.upgrade-nudge {
.jetpack-upgrade-nudge {
border-left: 3px solid var( --color-plan-premium );
box-shadow: 0 0 0 1px var( --color-border-subtle );
display: flex;
Expand All @@ -8,7 +8,7 @@
width: 100%;
}

.upgrade-nudge__icon {
.jetpack-upgrade-nudge__icon {
background: var( --color-plan-premium );
border-radius: 50%;
box-sizing: content-box;
Expand All @@ -20,16 +20,16 @@
fill: var( --color-white );
}

.upgrade-nudge__title {
.jetpack-upgrade-nudge__title {
font-size: 14px;
}

.upgrade-nudge__message {
.jetpack-upgrade-nudge__message {
color: var( --color-text-subtle );
font-size: 12px;
display: block;
}

.upgrade-nudge__button {
.jetpack-upgrade-nudge__button {
margin-left: auto;
}
4 changes: 2 additions & 2 deletions extensions/shared/wrap-paid-block/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default ( { feature, requiredPlan } ) =>
createHigherOrderComponent(
WrappedComponent => props => (
// Wraps the input component in a container, without mutating it. Good!
<div className="paid-block__wrapper">
<div className="jetpack-paid-block__wrapper">
<UpgradeNudge feature={ feature } plan={ requiredPlan } />
<div className="paid-block__disabled">
<div className="jetpack-paid-block__disabled">
<WrappedComponent { ...props } />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions extensions/shared/wrap-paid-block/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.paid-block__wrapper {
.jetpack-paid-block__wrapper {
border: 1px solid var( --color-border-subtle );
}

.paid-block__disabled {
.jetpack-paid-block__disabled {
opacity: 0.5;
padding: 10px;
}

0 comments on commit 4d6617b

Please sign in to comment.