-
Notifications
You must be signed in to change notification settings - Fork 3
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
Port HowToV2 block from express to milo #128
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
…ideo.js function: getAvailableVimeoSubLang
|
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.
found a few things.
Some unit tests wouldn't hurt either 🙌
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #128 +/- ##
==========================================
- Coverage 67.01% 66.85% -0.17%
==========================================
Files 62 61 -1
Lines 10148 10104 -44
==========================================
- Hits 6801 6755 -46
- Misses 3347 3349 +2 ☔ View full report in Codecov by Sentry. |
@vhargrave, @fullcolorcoder, |
I've updated this block so that the header is a new row within the block to address the comments above. I've also removed any reliance on section. |
@jsandland Still seeing some issues. Here's my sample page for reference.
I think adding a header should be optional. I don't think you should force the author to use an h2, h3, h4 to decorate. You should accept any string and size the text as needed. For SEO reasons you should let the author decided on which heading to use depending on where the block falls on the page. Maybe default wrapping plain text in a h2 or h3. But leave as is if the author styles the text with any h tag they choose. I'll try and get some sample code to help point you in the right direction for this. In the mean time you can take a look at how some of the blocks in milo-core decorate the block to achieve similar things. Hero marquee has a lot going on but a similar example to what your block has as far as structure (key value pairs). Marquee block. A more simple version than the hero marquee. cc: @fullcolorcoder |
@rgclayton I agree, that sounds like a good approach. |
@vhargrave @fullcolorcoder, Jackson, did this all work out? |
Describe your specific features or fixes:
Authoring Example:
how-to-v2-milo.docx
Resolves: MWPW-164891
![how-to-v2](https://private-user-images.githubusercontent.com/174151402/406612268-53c9e6ab-e2d7-494d-adf2-7b93268ecc66.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODE1ODQsIm5iZiI6MTczOTA4MTI4NCwicGF0aCI6Ii8xNzQxNTE0MDIvNDA2NjEyMjY4LTUzYzllNmFiLWUyZDctNDk0ZC1hZGYyLTdiOTMyNjhlY2M2Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwNjA4MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03Y2MyZGNiODcyOGJjOWZjYWU2NjJlNmU3MWQ3NTI1MmU1MGU5NDIxYTEwZGUzZTQyOTJhYWRlNjQ2Yjk2ZGFkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.WM5bjHR5XyOvOzXO5xvPdRDuQngqeMCorrn7xtM0o5Y)
Example in express: https://stage--express--adobecom.hlx.page/drafts/jsandlan/how-to-steps-accordion
Example in milo: https://port-how-to-v2-from-express--express-milo--adobecom.hlx.page/drafts/jsandlan/how-to-v2-milo