-
Notifications
You must be signed in to change notification settings - Fork 23
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
<rh-video-embed>
: context and play button.
#1758
Comments
@coreyvickery @marionnegp let us know your thoughts here. |
maybe better to make it a provider then |
This was my original thought see comment on the merged PR Doing so has some inherent problems noted in a super quick test of implementation of adding the provider. As it stands we two overlapping backgrounds.
Here is my best ascii text representation of current state
Currently, the caption exists on the parent context but inside the host. So just adding a provider here then will set the caption text color incorrectly. Definitely will have to refactor the way it renders so we can provide support to this. Can see this issue currently here: https://deploy-preview-1567--red-hat-design-system.netlify.app/elements/video-embed/demo/color-context/ |
we're in charge of the caption, right? |
because this has to do with images and art direction, we should consider |
|
@marionnegp Until we have |
@markcaron, I have #2125 open with some copy about this. Tagged you as the reviewer. |
In a dark parent context,
<rh-video-embed>
may be slotted with a 'light' background placeholder image. The dark context set by this parent would cause the<rh-button>
in the shadow root ofrh-video-embed
to adjust its context and display a light play button over top of the light background image.Because the background image sets another layer over the dark background set by the parent context this could cause color contrast issues with low sighted users identifying the play button on this image.
Example:
Possible solutions:
The text was updated successfully, but these errors were encountered: