-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Video section #178
Video section #178
Conversation
sections/video.liquid
Outdated
{ | ||
"type": "text", | ||
"id": "description", | ||
"default": "Describe the video for customers using screen readers", |
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.
Wondering if this should become an "info" below the input so merchants can read the full sentence?
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.
Good point, so it doesn't go away. And have a default be Video to describe your products or your brand
kind of thing ?
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 wonder if there should be a default, if so, it would have to be short otherwise merchants can't read the full sentence. Perhaps: Describe your video
?
When we edit alt text of an image this is the info helper text:
Write a brief description of this image to improve search engine optimization (SEO) and accessibility for visually impaired customers. This change will be saved immediately.
@gretchen-willenberg could we improve the Video alt text info text to align with what we have for image alt text (and ignore the SEO part)?
Draft: Describe the video for visually impaired customers using screen readers.
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 the reason why users might choose to use screen readers can be left out. Because it's not necessary always true.
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.
Sure!
- Updated the
Video alt text
placeholder copy from repeatingVideo alt text
toDescribe the video
- Agree with your revision to
Describe the video for customers using screen readers.
so it'sDescribe the video for visually impaired customers using screen readers.
I think I had some fuzzy old memory about not specifying why some one might choose to use a screen reader, but all research I just skimmed includes at least "visually impaired" if not "blind or visually impaired"--so corrected!
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 the reason why users might choose to use screen readers can be left out. Because it's not necessary always true.
@ludoboludo can you elaborate on this please?
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.
Added some research to the Slack thread and an updated version of copy:
Describe the video to make it accessible for customers using screen readers.
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.
It works great! I left small nitpick comments regarding the code, otherwise the functionality works well.
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.
Thank you Ludo! Apart from the last piece of content being discussed, this looks good to me! 🎉
cc. @nicklepine We didn't include a height setting but would like to observe the usage and feedback before doing so unless we feel strongly about it. Merchants cover image would need to be 16:9. Perhaps we could add the info under the setting... I'll leave it to you!
0ace18f
By extension does does this mean were also going to have a separate 3D section, PDF section, file section, etc. As a developer while As theme setup support the 'add section' picker does not categorize sections together it only displays them alphabetically making it easy to miss related sections or increasing the time it takes to explore for the right section capabilities as the list grows so the display name of sections should take this into account. |
In the editor, the "Describe the video for customers using screen readers" content is set as the
This content would ideally be hint text appearing below the <input
id="TextSetting-Label2"
placeholder=""
autocomplete="off"
class="Polaris-TextField__Input_30ock"
type="text"
- aria-labelledby="TextSetting-Label2Label"
+ aria-describedby="TextSetting-Label2Hint"
aria-invalid="false"
- value="Describe the video for customers using screen readers"
/>
+ <small id="TextSetting-Label2Hint">Describe the video for customers using screen readers</small> |
To make this easier on merchants, would it be possible to:
This would suffice as the video description rather than rely on the merchant to come up with something. |
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, thank you Sofia!
86143ea
577385f
to
86143ea
Compare
* main: Adjust spacing of elements around pickup availability on product page (Shopify#248) adjust conditional rendering of view all link (Shopify#251) Video section (Shopify#178)
Why are these changes introduced?
Fixes #49
Figma reference: video section
What approach did you take?
Reused a most of the code from the Collage section. And added some new styling specific to this section.
Other considerations
What should be the spacing like around the heading when the section is full width ? (Test wider screens too).
Demo links
Checklist