Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings screen updates #4998

Merged
merged 100 commits into from Jul 10, 2020
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
a23e0b4
Remove settings screen markup
johnwatkins0 Jul 6, 2020
a9e3d07
Refactor PHP classes for dependecy injection, update tests, setup adm…
johnwatkins0 Jul 6, 2020
9974b5c
Fix tests
johnwatkins0 Jul 6, 2020
0eea9d5
Welcome section
johnwatkins0 Jul 6, 2020
5192f62
Merge branch 'feature/4974-remove-close-on-finish-screen' into featur…
johnwatkins0 Jul 6, 2020
398ef55
Settings screen parts
johnwatkins0 Jul 6, 2020
c0d28d0
Merge branch 'feature/4974-remove-close-on-finish-screen' into featur…
johnwatkins0 Jul 6, 2020
4288269
Start on supported templates component
johnwatkins0 Jul 6, 2020
209222d
Merge remote-tracking branch 'origin/develop' into feature/4704-setti…
johnwatkins0 Jul 6, 2020
b9a3aa1
Complete working settings screen without tests or reader themes
johnwatkins0 Jul 7, 2020
aa32c6f
PHPUnit tests
johnwatkins0 Jul 7, 2020
ce2ad8b
Rename test class
johnwatkins0 Jul 7, 2020
fe68e6b
Update e2e tests with minor fixes
johnwatkins0 Jul 7, 2020
336f684
Merge remote-tracking branch 'origin/develop' into feature/4704-setti…
johnwatkins0 Jul 7, 2020
a16b9cf
Integrate reader theme seleection on settings page
johnwatkins0 Jul 7, 2020
fdba128
Resolve minor issues
johnwatkins0 Jul 7, 2020
4ed8e50
Linting fixes
johnwatkins0 Jul 7, 2020
e19f4c1
Improve tests
johnwatkins0 Jul 7, 2020
cdb8a17
Add tests and fix static analysis
johnwatkins0 Jul 7, 2020
316ef14
Test fixes
johnwatkins0 Jul 7, 2020
2e29ad8
Fix phpcs issue
johnwatkins0 Jul 7, 2020
d5b4ece
Copy update
johnwatkins0 Jul 7, 2020
ec2d557
Test fixes and style updates
johnwatkins0 Jul 7, 2020
8aaadd9
Move menu item last and update styles
johnwatkins0 Jul 7, 2020
ddf8c99
Fix lint issue
johnwatkins0 Jul 7, 2020
d689092
Handle mode notices on the FE instead of BE
johnwatkins0 Jul 7, 2020
fe463ee
Fix a failing PHPunit test
johnwatkins0 Jul 7, 2020
dfcc896
Options page: improve handling of submit button disabled state
johnwatkins0 Jul 8, 2020
4274149
Show notices based on whether plugin was configured rather than wheth…
johnwatkins0 Jul 8, 2020
5c0aa8e
Settings screen: minor JS updates
johnwatkins0 Jul 8, 2020
2e996ba
E2E test fix
johnwatkins0 Jul 8, 2020
2990917
Style updates based on design review
johnwatkins0 Jul 8, 2020
d47b163
Don't open wizard link in new tab
johnwatkins0 Jul 8, 2020
4ac1b0f
Merge remote-tracking branch 'origin/develop' into feature/4704-setti…
johnwatkins0 Jul 8, 2020
b05ffe6
Resolve additional conflicts with reader theme branch
johnwatkins0 Jul 8, 2020
b646856
Remove unneeded eslint ignore
johnwatkins0 Jul 8, 2020
480e393
Remove old options menu class and notice that was moved to JS
johnwatkins0 Jul 8, 2020
1c81777
Add needed use statements
johnwatkins0 Jul 8, 2020
d00b249
Move effect into onboarding wizard screen component
johnwatkins0 Jul 8, 2020
94545ca
Use temporary string to help tests pass
johnwatkins0 Jul 8, 2020
83c2e01
Static analysis fixes
johnwatkins0 Jul 8, 2020
4f7987d
Fix mock filename
johnwatkins0 Jul 8, 2020
4d36455
Refine mode recommendation notices on AMP settings screen
johnwatkins0 Jul 9, 2020
da1977f
Settings screen: set max height on reader themes
johnwatkins0 Jul 9, 2020
c6f0fd7
Docblock fix
johnwatkins0 Jul 9, 2020
b26e031
Default fetching options to false
johnwatkins0 Jul 9, 2020
3dde065
Only pass currently active theme notice to components that need it
johnwatkins0 Jul 9, 2020
af5ab7b
Merge branch 'feature/4704-settings-screen-updates' of https://github…
johnwatkins0 Jul 9, 2020
f554e0e
Make relative import briefer
johnwatkins0 Jul 9, 2020
df0f693
Merge branch 'feature/4704-settings-screen-updates' of https://github…
johnwatkins0 Jul 9, 2020
151636d
Remove unneeded defaultProps
johnwatkins0 Jul 9, 2020
79d4e15
Update description and for details prop
johnwatkins0 Jul 9, 2020
6facd83
Combine padding CSS rules
johnwatkins0 Jul 9, 2020
8dae204
Small PHP comment fixes
johnwatkins0 Jul 9, 2020
d6adb14
Undo debug code
johnwatkins0 Jul 9, 2020
376078b
Move reader mode override component
johnwatkins0 Jul 9, 2020
375d63b
Add @todo above CSS var block
johnwatkins0 Jul 9, 2020
5c5e452
Make GoogleFonts class conditional
johnwatkins0 Jul 9, 2020
c695a2e
Move ReaderThemes into DI architecture and minor improvements
johnwatkins0 Jul 9, 2020
51a9ddb
Rename phpunit group
johnwatkins0 Jul 9, 2020
4881c2d
Remove check for "all" theme support declared in theme
johnwatkins0 Jul 9, 2020
de82214
Text updates
johnwatkins0 Jul 9, 2020
6e83093
Update theme_support_args
johnwatkins0 Jul 9, 2020
1d7c2e3
Settings screen: show notices even if plugin is configured
johnwatkins0 Jul 9, 2020
c8cdcd0
Remove obsolete imports
johnwatkins0 Jul 9, 2020
2856055
Test fixes
johnwatkins0 Jul 9, 2020
1fdce43
Linting fies
johnwatkins0 Jul 9, 2020
2bc546c
Update test file with new class name
johnwatkins0 Jul 9, 2020
796a896
Cast filter result as array
johnwatkins0 Jul 9, 2020
6fa5132
PHPStan fixes
johnwatkins0 Jul 9, 2020
576b46e
Merge remote-tracking branch 'origin/develop' into feature/4704-setti…
johnwatkins0 Jul 9, 2020
a85667c
Update two more instances of changed class name
johnwatkins0 Jul 9, 2020
966e796
Minor CSS updates from design feedback
johnwatkins0 Jul 9, 2020
604cf0d
Update class dependencies in PHPUnit instances
johnwatkins0 Jul 9, 2020
f3c4148
Change HTMLElement to ElementName because the former exists globally
johnwatkins0 Jul 9, 2020
1334179
Settings page: enhance conditional UI logic around supported template…
johnwatkins0 Jul 9, 2020
4fb339b
Remove available_callback check and notice
johnwatkins0 Jul 9, 2020
f45910b
Improve readability around mobile redirection visibility
johnwatkins0 Jul 9, 2020
d9bab74
Increase width of status column in plugin suppression table
johnwatkins0 Jul 9, 2020
e8bc432
Add todo indicating Plugin Suppression will be handled over REST in t…
johnwatkins0 Jul 9, 2020
e464cc2
Supported templates visibility updates
johnwatkins0 Jul 9, 2020
b8316bb
Merge branch 'feature/4704-settings-screen-updates' of https://github…
johnwatkins0 Jul 9, 2020
c55bdd9
Remove unnecessary default option provided via filter elsewhere
johnwatkins0 Jul 9, 2020
4661ccb
Change ElementName to elementName and lint fixes
johnwatkins0 Jul 9, 2020
c39c00b
Merge branch 'feature/4704-settings-screen-updates' of https://github…
johnwatkins0 Jul 9, 2020
3618745
Restore ElementName
johnwatkins0 Jul 9, 2020
81b9a88
Change registration action for GoogleFonts class
johnwatkins0 Jul 9, 2020
b40767e
Comment formatting fix
johnwatkins0 Jul 9, 2020
281c354
Rename reader-mode-override.js
johnwatkins0 Jul 9, 2020
c3d1d15
Remove redundant isset check
johnwatkins0 Jul 9, 2020
55e26b9
Escaping and minor updates to OptionsMenu.php
johnwatkins0 Jul 9, 2020
aaa6109
Make details prop a string instead of a node
johnwatkins0 Jul 9, 2020
3505976
Merge branch 'feature/4704-settings-screen-updates' of https://github…
johnwatkins0 Jul 9, 2020
6f0a9c8
Add escaping to menu strings
johnwatkins0 Jul 9, 2020
330f2c3
Remove unused variable
johnwatkins0 Jul 9, 2020
dc61532
Restore supported templates fieldset without obsolete wrapper
johnwatkins0 Jul 9, 2020
f6c407c
Settings page CSS updates and test fixes
johnwatkins0 Jul 9, 2020
fea953b
Remove dead code and update translator comment formatting
westonruter Jul 9, 2020
e6ac291
Open ecosystem page in a new window
westonruter Jul 9, 2020
f717920
Improve formatting of active theme notice
westonruter Jul 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions assets/src/components/amp-setting-toggle/index.js
Expand Up @@ -18,15 +18,16 @@ import './style.css';
*
* @param {Object} props Component props.
* @param {boolean} props.checked Whether the toggle is on.
* @param {boolean} props.disabled Whether the toggle is disabled.
* @param {Function} props.onChange Change handler.
* @param {?string} props.text Toggle text.
* @param {string} props.title Toggle title.
*/
export function AMPSettingToggle( { checked, onChange, text, title } ) {
export function AMPSettingToggle( { checked, disabled = false, onChange, text, title } ) {
return (
<div className="amp-setting-toggle">
<div className={ `amp-setting-toggle ${ disabled ? 'amp-setting-toggle--disabled' : '' }` }>
<ToggleControl
checked={ checked }
checked={ ! disabled && checked }
label={ (
<div className="amp-setting-toggle__label-text">
<h3>
Expand All @@ -45,6 +46,7 @@ export function AMPSettingToggle( { checked, onChange, text, title } ) {
}
AMPSettingToggle.propTypes = {
checked: PropTypes.bool.isRequired,
disabled: PropTypes.bool,
onChange: PropTypes.func.isRequired,
text: PropTypes.string,
title: PropTypes.string.isRequired,
Expand Down
5 changes: 5 additions & 0 deletions assets/src/components/amp-setting-toggle/style.css
Expand Up @@ -42,3 +42,8 @@
.amp-setting-toggle .components-form-toggle__input:focus + .components-form-toggle__track {
box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand);
}

.amp-setting-toggle--disabled .components-form-toggle {
pointer-events: none;
opacity: 0.5;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 41 additions & 9 deletions assets/src/components/reader-theme-selection/index.js
Expand Up @@ -16,16 +16,36 @@ import { useContext, useMemo } from '@wordpress/element';
import { ReaderThemes } from '../reader-themes-context-provider';
import { Loading } from '../loading';
import './style.css';
import { AMPNotice } from '../amp-notice';
import { ThemeCard } from './theme-card';

/**
* Component for selecting a reader theme.
*
* @param {Object} props Component props.
* @param {boolean} props.disableCurrentlyActiveTheme Whether the currently active theme should be unselectable.
* @param {boolean} props.hideCurrentlyActiveTheme Whether the currently active theme should be unselectable.
*/
export function ReaderThemeSelection( { disableCurrentlyActiveTheme = false } ) {
const { currentTheme, fetchingThemes, themes } = useContext( ReaderThemes );
export function ReaderThemeSelection( { hideCurrentlyActiveTheme = false } ) {
johnwatkins0 marked this conversation as resolved.
Show resolved Hide resolved
const { currentTheme, fetchingThemes, themes: unprocessedThemes } = useContext( ReaderThemes );

const { activeTheme, themes } = useMemo( () => {
let active, processedThemes;

if ( hideCurrentlyActiveTheme ) {
processedThemes = ( unprocessedThemes || [] ).filter( ( theme ) => {
if ( 'active' === theme.availability ) {
active = theme;
return false;
}
return true;
} );
} else {
active = null;
processedThemes = unprocessedThemes;
}

return { activeTheme: active, themes: processedThemes };
}, [ hideCurrentlyActiveTheme, unprocessedThemes ] );

// Separate available themes (both installed and installable) from those that need to be installed manually.
const { availableThemes, unavailableThemes } = useMemo(
Expand All @@ -48,6 +68,10 @@ export function ReaderThemeSelection( { disableCurrentlyActiveTheme = false } )
return <Loading />;
}

if ( activeTheme && hideCurrentlyActiveTheme ) {

}

westonruter marked this conversation as resolved.
Show resolved Hide resolved
return (
<div className="reader-theme-selection">
<p>
Expand All @@ -56,17 +80,25 @@ export function ReaderThemeSelection( { disableCurrentlyActiveTheme = false } )
__( 'Select the theme template for mobile visitors', 'amp' )
}
</p>
{ activeTheme && hideCurrentlyActiveTheme && (
<AMPNotice>
{
sprintf(
// Translators: placeholder is the name of a WordPress theme.
westonruter marked this conversation as resolved.
Show resolved Hide resolved
__( 'Your active theme "%s" is not available as a reader theme. If you wish to use it, Transitional mode may be the best option for you', 'amp' ),
westonruter marked this conversation as resolved.
Show resolved Hide resolved
activeTheme.name,
)
}
</AMPNotice>
) }
<div>
{ 0 < availableThemes.length && (
<ul className="choose-reader-theme__grid">
{ availableThemes.map( ( theme ) => {
const disabled = disableCurrentlyActiveTheme && currentTheme.name === theme.name;
const currentlyActiveThemeNotice = disabled ? __( 'This is the active theme on your site. We recommend transitional mode.', 'amp' ) : null;
const disabled = hideCurrentlyActiveTheme && currentTheme.name === theme.name;

return (
return ! disabled && (
<ThemeCard
currentlyActiveThemeNotice={ currentlyActiveThemeNotice }
disabled={ disabled }
key={ `theme-card-${ theme.slug }` }
screenshotUrl={ theme.screenshot_url }
{ ...theme }
Expand Down Expand Up @@ -118,5 +150,5 @@ export function ReaderThemeSelection( { disableCurrentlyActiveTheme = false } )
}

ReaderThemeSelection.propTypes = {
disableCurrentlyActiveTheme: PropTypes.bool,
hideCurrentlyActiveTheme: PropTypes.bool,
};
3 changes: 2 additions & 1 deletion assets/src/components/reader-theme-selection/style.css
Expand Up @@ -41,11 +41,12 @@
display: flex;
}

.theme-card__label-header > * {
.theme-card__label-header > input {
flex-shrink: 0;
}

.theme-card__label-header h3 {
line-height: 1.3;
margin-left: 5px;
margin-top: 0.75em;
}
Expand Down
13 changes: 2 additions & 11 deletions assets/src/components/reader-theme-selection/theme-card.js
Expand Up @@ -17,28 +17,26 @@ import PropTypes from 'prop-types';
import { Options } from '../options-context-provider';
import { Selectable } from '../selectable';
import { Phone } from '../phone';
import { AMPNotice, NOTICE_TYPE_WARNING, NOTICE_SIZE_SMALL } from '../amp-notice';

/**
* A selectable card showing a theme in a list of themes.
*
* @param {Object} props Component props.
* @param {string} props.description Theme description.
* @param {string} props.currentlyActiveThemeNotice The notice to show if the theme is unselectable.
* @param {string} props.homepage Link to view more information about the theme.
* @param {string} props.screenshotUrl URL for screenshot of theme.
* @param {string} props.slug Theme slug.
* @param {string} props.name Theme name.
* @param {boolean} props.disabled Whether the theme is not automatically installable in the current environment.
*/
export function ThemeCard( { currentlyActiveThemeNotice, description, homepage, screenshotUrl, slug, name, disabled } ) {
export function ThemeCard( { description, homepage, screenshotUrl, slug, name, disabled } ) {
const { editedOptions, updateOptions } = useContext( Options );
const { reader_theme: readerTheme } = editedOptions;

const id = `theme-card__${ slug }`;

return (
<Selectable className={ `theme-card` } direction="bottom" HTMLElement="li" selected={ readerTheme === slug }>
<Selectable className={ `theme-card` } direction="bottom" ElementName="li" selected={ readerTheme === slug }>
westonruter marked this conversation as resolved.
Show resolved Hide resolved
<label htmlFor={ id } className="theme-card__label">
<Phone>
<img
Expand Down Expand Up @@ -66,12 +64,6 @@ export function ThemeCard( { currentlyActiveThemeNotice, description, homepage,

</div>

{ disabled && currentlyActiveThemeNotice && (
<AMPNotice type={ NOTICE_TYPE_WARNING } size={ NOTICE_SIZE_SMALL }>
{ currentlyActiveThemeNotice }
</AMPNotice>
) }

<p className="theme-card__description">
{ decodeEntities( description ) }

Expand All @@ -87,7 +79,6 @@ export function ThemeCard( { currentlyActiveThemeNotice, description, homepage,
}

ThemeCard.propTypes = {
currentlyActiveThemeNotice: PropTypes.string,
description: PropTypes.string.isRequired,
homepage: PropTypes.string.isRequired,
screenshotUrl: PropTypes.string.isRequired,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions assets/src/components/selectable/index.js
Expand Up @@ -15,28 +15,28 @@ import './style.css';
* @param {any} props.children Component children.
* @param {string} props.className Extra classes to add to the element.
* @param {string} props.direction The direction in which the visual treatment of the selectable element will orient.
* @param {string} props.HTMLElement The HTML element to serve as the selectable wrapper.
* @param {string} props.ElementName The HTML element to serve as the selectable wrapper.
* @param {boolean} props.selected Whether the element is selected.
*/
export function Selectable( { children, className = '', direction = 'left', HTMLElement = 'div', selected = false, ...props } ) {
export function Selectable( { children, className = '', direction = 'left', ElementName = 'div', selected = false, ...props } ) {
const classNames = [ className, 'selectable', ( selected ? 'selectable--selected' : '' ), `selectable--${ direction }` ]
.filter( ( name ) => name )
.join( ' ' );

return (
<HTMLElement
<ElementName
className={ classNames }
{ ...props }
>
{ children }
</HTMLElement>
</ElementName>
);
}

Selectable.propTypes = {
children: PropTypes.any,
className: PropTypes.string,
direction: PropTypes.oneOf( [ 'top', 'right', 'bottom', 'left' ] ),
HTMLElement: PropTypes.node,
ElementName: PropTypes.node,
selected: PropTypes.bool,
};
6 changes: 3 additions & 3 deletions assets/src/components/selectable/test/index.js
Expand Up @@ -39,7 +39,7 @@ describe( 'Selectable', () => {
expect( wrapper.toJSON() ).toMatchSnapshot();

wrapper = create(
<Selectable selected={ true } HTMLElement="section" className="my-cool-class" direction="top">
<Selectable selected={ true } ElementName="section" className="my-cool-class" direction="top">
<div>
{ 'Component children' }
</div>
Expand All @@ -51,7 +51,7 @@ describe( 'Selectable', () => {
it( 'has correct classes', () => {
act( () => {
render(
<Selectable selected={ true } HTMLElement="section" className="my-cool-class" direction="top">
<Selectable selected={ true } ElementName="section" className="my-cool-class" direction="top">
<div>
{ 'children' }
</div>
Expand All @@ -64,7 +64,7 @@ describe( 'Selectable', () => {

act( () => {
render(
<Selectable selected={ false } HTMLElement="section">
<Selectable selected={ false } ElementName="section">
<div>
{ 'children' }
</div>
Expand Down
36 changes: 25 additions & 11 deletions assets/src/components/supported-templates-toggle/index.js
Expand Up @@ -9,20 +9,34 @@ import { __ } from '@wordpress/i18n';
*/
import { Options } from '../options-context-provider';
import { AMPSettingToggle } from '../amp-setting-toggle';
import { AMPNotice } from '../amp-notice';

export function SupportedTemplatesToggle() {
const { editedOptions, updateOptions } = useContext( Options );

const { all_templates_supported: allTemplatesSupported, theme_support: themeSupport } = editedOptions;
const { all_templates_supported: allTemplatesSupported, reader_theme: readerTheme, theme_support: themeSupport } = editedOptions;

return [ 'standard', 'transitional' ].includes( themeSupport ) ? (
<AMPSettingToggle
checked={ true === allTemplatesSupported }
text={ __( 'This will allow all of the URLs on your site to be served as AMP by default.', 'amp' ) }
title={ __( 'Serve all templates as AMP regardless of what is being queried.', 'amp' ) }
onChange={ () => {
updateOptions( { all_templates_supported: ! allTemplatesSupported } );
} }
/>
) : null;
const isReaderMode = 'reader' === themeSupport;
const isLegacy = isReaderMode && 'legacy' === readerTheme;

return (
<>
{ isLegacy && (
<AMPNotice>
westonruter marked this conversation as resolved.
Show resolved Hide resolved
<p>
{ __( 'This setting is not available when the legacy Reader theme is selected.', 'amp' ) }
pierlon marked this conversation as resolved.
Show resolved Hide resolved
</p>
</AMPNotice>
) }
<AMPSettingToggle
checked={ true === allTemplatesSupported }
disabled={ isLegacy }
text={ __( 'This will allow all of the URLs on your site to be served as AMP by default.', 'amp' ) }
title={ __( 'Serve all templates as AMP regardless of what is being queried.', 'amp' ) }
onChange={ () => {
updateOptions( { all_templates_supported: ! allTemplatesSupported } );
} }
/>
</>
);
}
4 changes: 2 additions & 2 deletions assets/src/components/template-mode-option/index.js
Expand Up @@ -70,7 +70,7 @@ function getTitle( mode ) {
*
* @param {Object} props Component props.
* @param {string|Object} props.children Section content.
* @param {any} props.details Mode details.
* @param {string} props.details Mode details.
* @param {string} props.mode The template mode.
* @param {boolean} props.previouslySelected Optional. Whether the option was selected previously.
*/
Expand Down Expand Up @@ -125,7 +125,7 @@ export function TemplateModeOption( { children, details, mode, previouslySelecte

TemplateModeOption.propTypes = {
children: PropTypes.any,
details: PropTypes.node.isRequired,
details: PropTypes.string.isRequired,
mode: PropTypes.string.isRequired,
previouslySelected: PropTypes.bool,
};
2 changes: 1 addition & 1 deletion assets/src/onboarding-wizard/index.js
Expand Up @@ -36,7 +36,7 @@ import { NavigationContextProvider } from './components/navigation-context-provi
import { UserContextProvider } from './components/user-context-provider';
import { ErrorScreen } from './components/error-screen';
import { SiteScanContextProvider } from './components/site-scan-context-provider';
import { ReaderModeOverrideContextProvider } from './components/reader-mode-override';
import { ReaderModeOverrideContextProvider } from './components/reader-mode-override-context-provider';

const { ajaxurl: wpAjaxUrl } = global;

Expand Down
4 changes: 2 additions & 2 deletions assets/src/onboarding-wizard/pages/save/index.js
Expand Up @@ -18,7 +18,7 @@ import { User } from '../../components/user-context-provider';
import { Phone } from '../../../components/phone';
import './style.css';
import { ReaderThemes } from '../../../components/reader-themes-context-provider';
import { AMPNotice, NOTICE_SIZE_LARGE, NOTICE_TYPE_WARNING, NOTICE_TYPE_SUCCESS } from '../../../components/amp-notice';
import { AMPNotice, NOTICE_SIZE_LARGE, NOTICE_TYPE_SUCCESS, NOTICE_TYPE_INFO } from '../../../components/amp-notice';
import { Navigation } from '../../components/navigation-context-provider';
import { Options } from '../../../components/options-context-provider';

Expand Down Expand Up @@ -209,7 +209,7 @@ export function Save() {
</div>
<div className="done__preview-container">
{ 'reader' === themeSupport && downloadingThemeError && (
<AMPNotice size={ NOTICE_SIZE_LARGE } type={ NOTICE_TYPE_WARNING }>
<AMPNotice size={ NOTICE_SIZE_LARGE } type={ NOTICE_TYPE_INFO }>
{ __( 'There was an error downloading your reader theme. As a result, your site is currently using the legacy reader theme. Please install your chosen theme manually.', 'amp' ) }
</AMPNotice>
) }
Expand Down
2 changes: 1 addition & 1 deletion assets/src/onboarding-wizard/pages/save/style.css
Expand Up @@ -17,7 +17,7 @@
}

.done__link-buttons a:not(:last-child) {
margin-right: 5px;
margin-right: 15px;
}


Expand Down
2 changes: 1 addition & 1 deletion assets/src/onboarding-wizard/pages/summary/transitional.js
Expand Up @@ -15,7 +15,7 @@ import { useContext } from '@wordpress/element';
import { Transitional as TransitionalIllustration } from '../../../components/svg/transitional';
import { AMPNotice, NOTICE_TYPE_INFO, NOTICE_SIZE_LARGE } from '../../../components/amp-notice';
import { RedirectToggle } from '../../../components/redirect-toggle';
import { ReaderModeOverride } from '../../components/reader-mode-override';
import { ReaderModeOverride } from '../../components/reader-mode-override-context-provider';
import { SummaryHeader } from './summary-header';
import { DesktopScreenshot } from './desktop-screenshot';

Expand Down
2 changes: 1 addition & 1 deletion assets/src/onboarding-wizard/style.css
Expand Up @@ -9,7 +9,7 @@ body {
.amp-settings-container {
margin: 0 auto;
max-width: calc(var(--stepper-max-width) + var(--setup-page-max-width));
padding: 20px 20px 12rem;
padding: 20px 20px 3rem;
width: 100%;
}

Expand Down