-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Site settings: updated Jetpack toggle spacing and child-settings indentation #11240
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.
Looks good, I just have a few nitpicky comments :)
@@ -99,7 +99,7 @@ class CustomContentTypes extends Component { | |||
const { customContentTypesModuleActive } = this.props; | |||
|
|||
return ( | |||
<div className="custom-content-types__module-settings is-indented"> | |||
<div className="site-settings__child-settings"> |
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.
Using only this classname is flagging the JSX class namespace rule, because there is no prefixed classname here. If you change this to custom-content-types__module-settings site-settings__child-settings
, it'll pass. (same with the other places this was replaced)
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.
Is this being flagged for all the settings groups or just this one?
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.
All of them - it should be fine if you bring back the *-settings
class for each group.
@@ -1,7 +1,7 @@ | |||
.jetpack-module-toggle .form-toggle__label *:not( .form-toggle__switch ) { | |||
margin-left: 8px; | |||
margin-left: 12px; |
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.
Can this just be removed, if we're resetting it to the same as the general toggle spacing?
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 think so. I couldn't find anything it effected.
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 confirm, this one can safely be removed now.
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.
Looks great in my testing, and @ryelle said it all in her review. Once her feedback is addressed, I think this one should be ready to go. Thanks for fixing those 👍
63ef41e
to
9a6eddf
Compare
@ryelle this looks awesome! Let's ship it 🚢 ! |
…1231) * Site Settings: Move wpcom markdown in a separate component * Site Settings: Move default post format in a separate component * Site Settings: Initial version of After the Deadline settings * Site Settings: Improve translations in AfterTheDeadline * Site Settings: Enable AfterTheDeadline only for supported sites * Site Settings: Add support for manually setting field value in wrapSettingsForm * Site Settings: Use TokenField instead of FormTextInput for ignored phrases * Site Settings: Rename MarkdownWpcom to just Markdown * Site Settings: Rename MarkdownWpcom to just Markdown * Site Settings: Improve wording in AfterTheDeadline labels * Site Settings: Cleanup unused props in Composing card * Site Settings: Implemenet advanced settings toggle in AfterTheDeadline * State: Add AfterTheDeadline settings to filterSettingsByActiveModules * Site Settings: Update Composing styles as implemented in #11240 * Site Settings: Formatting and alignment improvements in After The Deadline card
As per @rickybanister's good catch in #11237
Changes
8px
to12px
to be consistent with other toggles32px
to36px
Before
After