-
Notifications
You must be signed in to change notification settings - Fork 903
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
Styling improvements #10483
Styling improvements #10483
Conversation
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.
CR done 🏗
/** | ||
* Sidebar Collapsible component with default padding and separator | ||
* | ||
* @param {object} props The properties for the component. |
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.
object
should be Object
.
* | ||
* @returns {ReactElement} The Collapsible component. | ||
*/ | ||
const SidebarCollapsible = ( props ) => { |
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.
The name SidebarCollapsible
seems odd as we also use it outside of the Sidebar. Additionally, the name is never called outside of this file, so I'm unsure of it's added value.
* @returns {ReactElement} The Collapsible component. | ||
*/ | ||
const SidebarCollapsible = ( props ) => { | ||
return <Collapsible hasPadding={true} hasSeparator={true} {...props} />; |
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.
I believe the code-style dictates the usage of spaces after {
and before }
.
CR 2 done 👍 |
Acceptance done 👍 |
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Snippet Preview
is the only opened collapsible by default.Test instructions
This PR can be tested by following these steps:
Quality assurance
I have added unittests to verify the code works as intendedFixes Yoast/yoast-components#671
Requires Yoast/yoast-components#682