-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Focused Launch: PlanDetails View (#47373)
Co-authored-by: Razvan Papadopol <razvan.papadopol@automattic.com> Co-authored-by: Omar Alshaker <omar@omaralshaker.com>
- Loading branch information
1 parent
c964a5b
commit 254f872
Showing
14 changed files
with
298 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/launch/src/focused-launch/go-back-button/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import React from 'react'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { Icon, chevronLeft } from '@wordpress/icons'; | ||
import type { Button } from '@wordpress/components'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import { BackButton } from '@automattic/onboarding'; | ||
import './style.scss'; | ||
|
||
declare const __i18n_text_domain__: string; | ||
|
||
export default function GoBackButton( props: Button.ButtonProps ) { | ||
return ( | ||
<BackButton { ...props }> | ||
<Icon icon={ chevronLeft } /> | ||
{ __( 'Go back', __i18n_text_domain__ ) } | ||
</BackButton> | ||
); | ||
} |
22 changes: 22 additions & 0 deletions
22
packages/launch/src/focused-launch/go-back-button/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.go-back-button__focused-launch { | ||
text-decoration: underline; | ||
background: transparent; | ||
border: none; | ||
padding: 0; | ||
margin: 0; | ||
margin-bottom: 24px; | ||
cursor: pointer; | ||
|
||
& > * { | ||
vertical-align: middle; | ||
} | ||
|
||
svg { | ||
// the svg has 5 empty pixels on the left | ||
margin-left: -5px; | ||
} | ||
} | ||
|
||
.go-back-button__focused-launch:hover { | ||
opacity: 0.7; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.focused-launch-plan-details__back-button-wrapper { | ||
margin-bottom: 24px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.