-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add new notice components for both modules. #9460
Conversation
Build files for 5b48a20 have been deleted. |
Size Change: +1.1 kB (+0.06%) Total Size: 1.85 MB
ℹ️ View Unchanged
|
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, just a few small code quality things that I can commit then merge 👍🏻
<WithTestRegistry | ||
features={ features } | ||
route={ route } | ||
// Expose registry as global for tinkering. |
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.
This is a great comment 😄
assets/js/modules/analytics-4/components/common/AccountCreate/index.test.js
Outdated
Show resolved
Hide resolved
@@ -22,6 +22,10 @@ | |||
margin-top: 0 !important; | |||
} | |||
|
|||
.googlesitekit-margin-top-1 { | |||
margin-top: 1rem !important; |
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.
Usually when adding !important
it's good to add a reason why we're using important. It helps with debugging/removals/auditing in the future.
I suspect the reason here is just to make sure these styles are always applied regardless of other classes—if that's the case I can add a comment for all of them.
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.
Yeah it's following the precedent here (which is inconsistent too), but if we're using a utility, it should be authoritative.
@@ -22,6 +22,10 @@ | |||
margin-top: 0 !important; | |||
} | |||
|
|||
.googlesitekit-margin-top-1 { | |||
margin-top: 1rem !important; |
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.
Yeah it's following the precedent here (which is inconsistent too), but if we're using a utility, it should be authoritative.
@@ -96,8 +122,6 @@ describe( 'SetupForm', () => { | |||
.dispatch( MODULES_ANALYTICS_4 ) | |||
.selectAccount( accountID ); | |||
|
|||
registry.dispatch( MODULES_ANALYTICS_4 ).setAccountID( accountID ); |
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 cleaned up all of these where it was called after selectAccount
which uses this internally and thus redundant.
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist