-
Notifications
You must be signed in to change notification settings - Fork 27
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
DAM-7996 #1747
DAM-7996 #1747
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.
Same here, this looks great, but want one other team member to look it over before merging it.
Hi @blakeganderson, sorry for the late response; |
@raul-wizeline the border-radius is working for me now! Feel free to merge |
@raul-wizeline , update the base branch to |
0d1abf8
into
arc-themes-release-version-2.1.1
Looks good to me! The only comment that I have is to change the label of aspect ratio to 'Player aspect ratio' instead of 'Player Aspect Ratio'. @raul-wizeline |
Description
This PR is part of the effort of DAM to give an improved experience in vertical videos across Arc products. it's summarized with this changes:
article body
viewportPercentage
,borderRadius
&aspectRatio
.leadart
viewportPercentage
,borderRadius
&aspectRatio
.video-player
viewportPercentage
,borderRadius
&aspectRatio
.About the new fields
This three blocks have the same fields and shares the same behavior. Here is a description of each one and what should expect when you interact with them.
Player Aspect Ratio - Handles the aspect-ratio to render for the video player. When you select a value, the block refreshes with the video player rendering at the selected aspect ratio. "Video source" and "--" values renders the player at the aspect ratio of the video. For videos in 9:16 the black background is replaced by a transparent one and the captions gets aligned at the middle of the block.
View height percentage - Handles the height percentage the player takes from viewport. The default value is 65. This field only applies for videos in 9:16; videos in other formats takes the 65%.
Round player corners - Enables the video player to render with rounded corners. This field only applies for videos in 9:16, videos in other formats render with straight edges.
Jira Ticket
Acceptance Criteria
Test Steps
Setup
@wpmedia/arc-themes-components
repogit checkout DAM-7996
@wpmedia/arc-themes-blocks
git checkout DAM-7996
npx fusion start -f -l @wpmedia/article-body-block,@wpmedia/lead-art-block,@wpmedia/video-player-block
Advanced Right Left
as the layout, under the setup menucontent-api
as content source and put/test/2023/04/06/story-with-video-featured-media/
in the website_url. Press the update button.The Gazette
Article Body
Lead Art
Video Player
Effect Of Changes
Before
Video Player
No inputs to manage introduced features.Article Body
No inputs to manage introduced features.Lead Art
No inputs to manage introduced features.After
Video Player
Article Body
Lead Art
Dependencies or Side Effects
Author Checklist
npm run lint
to check for errors. Often,npm run lint:fix
will fix those errors and warnings.npm run test:coverage
to see your progress.npm run test
, made sure all tests are passingReviewer Checklist
The reviewer of the PR should copy-paste this template into the review comments on review.