-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
fill: currentColor; | ||
`; | ||
|
||
const GuidanceIcon = () => ( |
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.
Would it make more sense to put this guidance icon in @bbc/psammead-assets
?
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.
@12 yeah, definitely it would. but depends on how much we'd be reusing it. was planning to build everything here first and slowly separate them out
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.
Any updates on what you've decided to do? I still think we should extract this out to psammead-assets
personally...
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
|
||
Guidance.propTypes = { | ||
message: string, | ||
className: string, |
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 can't see where or why we would pass this prop?
fill: currentColor; | ||
`; | ||
|
||
const GuidanceIcon = () => ( |
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.
Any updates on what you've decided to do? I still think we should extract this out to psammead-assets
personally...
|
||
.c2 { | ||
font-family: ReithSans,Helvetica,Arial,sans-serif; | ||
font-weight: 700; |
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.
The UX specification says that the guidance message should have a normal font weight. This suggests that the guidance message will have a weight of 700
(and it does in Storybook).
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
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's great to see this come together, @rhenshaw56. I've added a few comments below.
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
packages/components/psammead-media-player/src/Guidance/index.jsx
Outdated
Show resolved
Hide resolved
packages/components/psammead-media-player/src/index.stories.jsx
Outdated
Show resolved
Hide resolved
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
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.
'Guidance: May contain strong language, sexual or violent content that may offend.', | ||
...withDuration, | ||
}} | ||
className="foo" |
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.
Why are we setting className
here?
Needs manual testing + dev a11y swarm |
Dev/A11y Swarm -https://bbc.github.io/accessibility-news-and-you/accessibility-news-and-testers
Screen Readers (IE11) - Harvey:
Mac, iOS, and Android:
|
Is the guidance just been added to canonical media player page or even on amp? |
@PriyaKR this is just for the canonical media player |
Looks good to me.When the media player component is bumped in simorgh this has to be verified on an article page and cross device tested.Cypress tests has to be added then. Looks good across different browsers. One thing to mention i can't see the Guidance svg logo in designs but there are in storybook.Are the designs not up to date? |
ok thanks @rhenshaw56 this can be merged also cypress tests can be added now have created a separate issue bbc/simorgh#4580 and blocked it until we update the psammead media player to version |
Resolves bbc/simorgh#3139
Overall change: Adds guidance to Media player placeholder
Code changes: