-
Notifications
You must be signed in to change notification settings - Fork 54
Update psammead-media-player prop documentation #2545
Conversation
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
|
||
The `src` prop is required, as it tells the component what page it needs to embed. | ||
The `placeholderSrcset` prop is not required, as it allows image responsiveness and optimization depending on the size of the screen. | ||
The `title` prop is required for accessibility of the embedded iframe. | ||
The `portrait` prop is not required, and defaults to `false`. This is to support portrait video content in the future. | ||
The `mediaInfo` prop is required, as it shows info regarding the media such as title, duration, durationSpoken and type of media either Video or Audio |
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 we should add another table documenting the constituent properties of the mediaInfo object and whether they are required etc. following the propType defined at https://github.com/bbc/psammead/blob/0be6fee4b760960535d08b9260c44d4ed1604942/packages/components/psammead-media-player/src/index.jsx#L88
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.
done
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
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.
Thanks for updating this, @RayNjeri! Please can you add skin
and service
too?
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
…5-documentation Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
8cf9b50
to
38b7d48
Compare
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 👍
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
cf182c1
to
73a1790
Compare
Co-Authored-By: Simon Sinclair <simon.sinclair@bbc.co.uk>
Co-Authored-By: Simon Sinclair <simon.sinclair@bbc.co.uk>
Co-Authored-By: Simon Sinclair <simon.sinclair@bbc.co.uk>
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
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.
LGTM just some things with string quotations
5a125bd
to
b350a29
Compare
Signed-off-by: RayNjeri <rachael.njeri@andela.com>
b350a29
to
b83da85
Compare
Co-Authored-By: Harvey Peachey <harvey.peachey@bbc.co.uk>
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.
LGTM
Signed-off-by: RayNjeri rachael.njeri@andela.com
Resolves #2475
Overall change: Updates
@psammead-media-player
Props documentation .Code changes:
@psammead-media-player
README.md.