Add CTAPreview component shell.#13136
Conversation
📚 Storybook for 85afb59: 📦 Build files for 85afb59:
🎭 Playwright reports for 85afb59: |
|
Size Change: +5.54 kB (+0.15%) Total Size: 3.67 MB 📦 View Changed
ℹ️ View Unchanged
|
|
|
||
| export { default as SetupForm } from './SetupForm'; | ||
| export { default as SetupMain } from './SetupMain'; | ||
| export * as SetupMainExpress from './SetupMainExpress'; |
There was a problem hiding this comment.
The develop branch already has it. Please pull the latest and resolve any conflicts.
| const CTA_PREVIEW_TAB_POPUP = 0; | ||
| const CTA_PREVIEW_TAB_INLINE = 1; | ||
|
|
||
| export default function CTAPreview( { |
There was a problem hiding this comment.
Since this is a new component, could we implement it in TypeScript?
| ); | ||
| } | ||
|
|
||
| CTAPreview.propTypes = { |
There was a problem hiding this comment.
Please use the interface with TS.
| @@ -0,0 +1,19 @@ | |||
| /** | |||
| * Reader Revenue Manager SetupMainExpress components. | |||
There was a problem hiding this comment.
develop already has SetupMainExpress/index.tsx. This barrel should be removed; CTAPreview can be imported from its own path (SetupMainExpress/CTAPreview).
| @@ -0,0 +1,39 @@ | |||
| /** | |||
| * Reader Revenue Manager CTAPreview component stories. | |||
There was a problem hiding this comment.
Please migrate it to TypeScript.
| /** | ||
| * Reader Revenue Manager CTAPreview component tests. | ||
| * | ||
| * Site Kit by Google, Copyright 2025 Google LLC |
There was a problem hiding this comment.
| * Site Kit by Google, Copyright 2025 Google LLC | |
| * Site Kit by Google, Copyright 2026 Google LLC |
| /** | ||
| * Reader Revenue Manager CTA Preview styles. | ||
| * | ||
| * Site Kit by Google, Copyright 2025 Google LLC |
There was a problem hiding this comment.
| * Site Kit by Google, Copyright 2025 Google LLC | |
| * Site Kit by Google, Copyright 2026 Google LLC |
| .googlesitekit-rrm-cta-preview__description { | ||
| text-align: left; | ||
| } |
There was a problem hiding this comment.
Nit: a few lines here (42-44, 81-83, 91-93) are space-indented while the rest of the file uses tabs. Can we make it consistent?
| } | ||
| } | ||
|
|
||
| .mdc-tab__ripple { |
There was a problem hiding this comment.
Hiding .mdc-tab__ripple also removes the visible keyboard focus state. Could we keep it or add a :focus-visible style?
|
|
||
| .googlesitekit-plugin { | ||
|
|
||
| .googlesitekit-rrm-cta-preview { |
There was a problem hiding this comment.
The IB calls for a rounded card, but the container has no border radius. Could we add the appropriate border radius? As per the Figma design, the container should have an 8px border-radius.
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