-
Notifications
You must be signed in to change notification settings - Fork 902
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
10267 add cornerstone toggle to sidebar #10405
Conversation
js/src/edit.js
Outdated
@@ -13,6 +13,8 @@ import ClassicEditorData from "./analysis/classicEditorData.js"; | |||
import isGutenbergDataAvailable from "./helpers/isGutenbergDataAvailable"; | |||
import SnippetEditor from "./containers/SnippetEditor"; | |||
import { ThemeProvider } from "styled-components"; | |||
import CornerstoneToggle from "yoast-components/composites/Plugin/CornerstoneContent/components/CornerstoneToggle"; | |||
import Styled from "styled-components"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styled should be lowercase: it's not a component.
js/src/edit.js
Outdated
@@ -35,6 +37,10 @@ function registerStoreInGutenberg() { | |||
} ); | |||
} | |||
|
|||
const YoastSidebarContainer = Styled.div` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styled should be lowercase
js/src/edit.js
Outdated
<YoastSidebarContainer> | ||
<p> Contents of the sidebar </p> | ||
<CornerstoneToggle onChange={ () => {} } checked={ true } /> | ||
</YoastSidebarContainer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, I know this is for testing purposes but the indentation should be fixed.
CR 🚧 |
js/src/edit.js
Outdated
<p> Contents of the sidebar </p> | ||
<YoastSidebarContainer> | ||
<p> Contents of the sidebar </p> | ||
<CornerstoneToggle onChange={ () => {} } checked={ true } /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure to rebase against the latest trunk
and put this inside the <Fill>
.
js/src/edit.js
Outdated
@@ -35,6 +37,10 @@ function registerStoreInGutenberg() { | |||
} ); | |||
} | |||
|
|||
const YoastSidebarContainer = styled.div` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me this padding shouldn't be on the sidebar itself, but on the underlying components. For instance, a <Collapsible>
should have the padding (which it already does).
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
Quality assurance
Requires #668