-
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.
Preview limited Global Styles by default (#76661)
- Custom styles are previewed by default, so there is less confusion around the site-editor and the front-end not matching up. - Both the site editor and the post editor display now a global notice when Global Styles are limited. Previous sidebar notices in the site editor have been removed. This notice has the following actions: - Upgrade now (primary): Visible in both editors – It opens the Plans page in a new tab. - Remove custom styles (link): Visible in the site editor only – It resets the styles to defaults (it’s easy and safe to do so in the editor). Once we have a support page explaining how to remove custom styles, we can show it in the post editor too. - Add a new notice to the view canvas. - Updates the E2E test to use the view canvas mode since that's the only place where we have a fragile CSS selector.
- Loading branch information
Showing
16 changed files
with
252 additions
and
333 deletions.
There are no files selected for viewing
71 changes: 0 additions & 71 deletions
71
...diting-toolkit/editing-toolkit-plugin/wpcom-global-styles/global-style-sidebar-notice.tsx
This file was deleted.
Oops, something went wrong.
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
98 changes: 0 additions & 98 deletions
98
apps/editing-toolkit/editing-toolkit-plugin/wpcom-global-styles/notice.js
This file was deleted.
Oops, something went wrong.
19 changes: 2 additions & 17 deletions
19
apps/editing-toolkit/editing-toolkit-plugin/wpcom-global-styles/notice.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 |
---|---|---|
@@ -1,23 +1,8 @@ | ||
.wpcom-global-styles-notice { | ||
margin: 0 0 0 0; | ||
|
||
.notice-margin { | ||
margin: 16px 0 0; | ||
} | ||
margin: 0 0 12px; | ||
color: var(--color-text); | ||
|
||
.components-notice__content { | ||
margin-right: 0; | ||
} | ||
|
||
a { | ||
display: inline; | ||
} | ||
|
||
.components-button.is-link { | ||
color: var(--color-link); | ||
|
||
&:hover { | ||
color: var(--color-link-light); | ||
} | ||
} | ||
} |
Oops, something went wrong.