Skip to content
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

WSTEAM1-1543: Add live media to header - PRODUCTION #12239

Merged
merged 166 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
f65223b
WSTEAM1-1521: Update
shayneahchoon Dec 15, 2024
e9977ba
WSTEAM1-1521: Update
shayneahchoon Dec 16, 2024
829a46b
WSTEAM1-1521: Update
shayneahchoon Dec 16, 2024
dd881c0
WSTEAM1-1521: Update
shayneahchoon Dec 16, 2024
dd612d9
Nullify mediaCollections in data to match what the BFF response would be
karinathomasbbc Dec 16, 2024
adac371
Remove support for service ID as support for (Silver) PIDs is required
karinathomasbbc Dec 16, 2024
8e4e75c
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of github.com:bbc/si…
karinathomasbbc Dec 16, 2024
08f3c18
Merge branch 'latest' into WSTEAM1-1521-LIVE-VIDEO-FRONT-END
karinathomasbbc Dec 16, 2024
549cc72
Update test
karinathomasbbc Dec 16, 2024
651237a
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of github.com:bbc/si…
karinathomasbbc Dec 16, 2024
cfdf9cb
Rename story
karinathomasbbc Dec 16, 2024
8d3ba00
show hide mediaplayer with css
Louis-Matsika Dec 17, 2024
e67eac8
initial styling
Louis-Matsika Dec 17, 2024
fa89f0d
more styling
Louis-Matsika Dec 18, 2024
88c8e1f
fix css bugs
Louis-Matsika Dec 18, 2024
518fa51
keep media player in place when video is playing
Louis-Matsika Dec 18, 2024
793bb6a
add play button
Louis-Matsika Dec 18, 2024
6d567d0
fix spacing
Louis-Matsika Dec 18, 2024
68df7a6
add mq
Louis-Matsika Dec 18, 2024
253030e
approach 2 using tsx
Louis-Matsika Dec 18, 2024
2bc1ebf
go back to css approach
Louis-Matsika Dec 18, 2024
8316c00
revist tsx approach with workaround
Louis-Matsika Dec 18, 2024
2a6517a
add better bumploader workaround
Louis-Matsika Dec 18, 2024
b1f5da7
Update fixture data in line with tipo
karinathomasbbc Dec 18, 2024
4b6d2c4
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of github.com:bbc/si…
karinathomasbbc Dec 18, 2024
ea06e72
Update styling to more closely match the designs
karinathomasbbc Dec 18, 2024
af495e5
Add translations for Watch live
karinathomasbbc Dec 18, 2024
0e51105
Don't translate "live" if the media is not live
karinathomasbbc Dec 18, 2024
183a590
Updating fixture data for test live page
karinathomasbbc Dec 19, 2024
30272bd
Add status to type def
karinathomasbbc Dec 19, 2024
5501950
Add spacing after desription
karinathomasbbc Dec 19, 2024
b2085ef
Display programme name + channel name once video player is visible
karinathomasbbc Dec 19, 2024
a7d1504
Fix text
karinathomasbbc Dec 19, 2024
fd48d5d
Fix styles
karinathomasbbc Dec 19, 2024
b6a4632
Align close button to the right
karinathomasbbc Dec 19, 2024
9738c5f
Implement close button as icon
karinathomasbbc Dec 19, 2024
04e9a28
Cleanup types
karinathomasbbc Dec 19, 2024
db1d042
Fix tests
karinathomasbbc Dec 19, 2024
e9883ac
Update fixture data for live media stream
karinathomasbbc Dec 19, 2024
cf299f5
Use episode PID since silver stream has expired
karinathomasbbc Dec 20, 2024
cd240c9
make new LiveMediaSttream component
Louis-Matsika Dec 23, 2024
89c53d7
add button
Louis-Matsika Dec 23, 2024
e02d440
add pressable button
Louis-Matsika Dec 23, 2024
118951a
add styles
Louis-Matsika Dec 23, 2024
8591592
mediacollections check
Louis-Matsika Dec 23, 2024
aec0dbd
add data
Louis-Matsika Dec 23, 2024
4fb809d
add medialoader
Louis-Matsika Dec 23, 2024
be2c67a
render medialoader on click
Louis-Matsika Dec 23, 2024
280fa0a
add x buttom
Louis-Matsika Dec 23, 2024
1574e8c
add basic styles
Louis-Matsika Dec 23, 2024
372cf58
reorder elements
Louis-Matsika Dec 23, 2024
140a5f3
re-add network name
Louis-Matsika Dec 24, 2024
590a23a
add info under media player
Louis-Matsika Dec 24, 2024
e7ee8e2
WSTEAM1-1521: Update
shayneahchoon Dec 24, 2024
813b892
add play button style
Louis-Matsika Dec 24, 2024
af47982
fix style name
Louis-Matsika Dec 24, 2024
d2b53d7
add basic styles
Louis-Matsika Dec 24, 2024
9608205
fix media container
Louis-Matsika Dec 24, 2024
963cf43
add play button mq
Louis-Matsika Dec 24, 2024
4fb1841
add media icons
Louis-Matsika Dec 30, 2024
ae60762
put play icon before watchnow
Louis-Matsika Dec 30, 2024
11749a5
remove old icon import
Louis-Matsika Dec 30, 2024
db6e6f3
add basic text styles
Louis-Matsika Dec 30, 2024
760fb00
add basic button styles
Louis-Matsika Dec 30, 2024
ec519c6
add basic text and icon styles
Louis-Matsika Dec 30, 2024
c0f0ee5
get closer to UX designs
Louis-Matsika Dec 31, 2024
268803c
fix text left side spacing
Louis-Matsika Dec 31, 2024
3fbeaf0
WSTEAM1-1521: Add autoplay
shayneahchoon Dec 31, 2024
3bc96d1
WSTEAM1-1521: Update
shayneahchoon Dec 31, 2024
c03e72e
add new LIVE_CORE colour to Simorgh palette
Louis-Matsika Jan 2, 2025
34a5655
lint
Louis-Matsika Jan 2, 2025
3634160
fix unit tests
Louis-Matsika Jan 2, 2025
a381448
fix unit tests 2
Louis-Matsika Jan 2, 2025
40bf457
lint
Louis-Matsika Jan 2, 2025
c12156d
lint
Louis-Matsika Jan 2, 2025
b91fb93
revert header to pre SPIKE state
Louis-Matsika Jan 2, 2025
f195984
revert header styles to pre SPIKE state
Louis-Matsika Jan 2, 2025
d5c79fd
update snapshots
Louis-Matsika Jan 2, 2025
d512e92
add new LiveMediaStream to header
Louis-Matsika Jan 2, 2025
a299ce6
lint
Louis-Matsika Jan 2, 2025
d1a05d4
lint
Louis-Matsika Jan 2, 2025
e9df75d
Merge branch 'latest' into WSTEAM1-1521-LIVE-VIDEO-FRONT-END
shayneahchoon Jan 6, 2025
bcda77e
add hover colour change
Louis-Matsika Jan 6, 2025
61edd3a
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of https://github.co…
Louis-Matsika Jan 6, 2025
dcb368c
Merge branch 'latest' into WSTEAM1-1521-LIVE-VIDEO-FRONT-END
shayneahchoon Jan 6, 2025
a4b1e4c
WSTEAM1-1521: Add autoplay
shayneahchoon Jan 6, 2025
55232c5
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of github.com:bbc/si…
shayneahchoon Jan 6, 2025
7b759b6
WSTEAM1-1521: Refactor
shayneahchoon Jan 6, 2025
a3fd172
WSTEAM1-1521: Add warning and placeholder logic.
shayneahchoon Jan 6, 2025
7d8ec0f
WSTEAM1-1521: refactor
shayneahchoon Jan 7, 2025
c327544
WSTEAM1-1521: refactor
shayneahchoon Jan 7, 2025
31deb1c
WSTEAM1-1521: Add warnings
shayneahchoon Jan 7, 2025
8cac828
WSTEAM1-1521: Update
shayneahchoon Jan 7, 2025
6e0ba11
WSTEAM1-1521: UpdatE
shayneahchoon Jan 7, 2025
466a5d6
WSTEAM1-1558: Adds initial styles and Screen Reader UX
Isabella-Mitchell Jan 7, 2025
154427e
WSTEAM1-1558: Applies hover and forced colour styles
Isabella-Mitchell Jan 8, 2025
bc7dfbd
WSTEAM1-1558: Tidy
Isabella-Mitchell Jan 8, 2025
4066223
WSTEAM1-1558: Fix padding
Isabella-Mitchell Jan 8, 2025
c2f6f2b
WSTEAM1-1521: Update
shayneahchoon Jan 8, 2025
d3b7745
WSTEAM1-1521: Update
shayneahchoon Jan 8, 2025
51fffbc
WSTEAM1-1521: Update
shayneahchoon Jan 8, 2025
fa561e6
WSTEAM1-1521: Update
shayneahchoon Jan 8, 2025
e60aa6f
move elements into button
Louis-Matsika Jan 8, 2025
60b2b91
Merge in origin
Isabella-Mitchell Jan 8, 2025
dd93938
initial style
Louis-Matsika Jan 8, 2025
ebf47ac
more style
Louis-Matsika Jan 8, 2025
71ac095
merge changes
Louis-Matsika Jan 8, 2025
55790db
add close icon styles
Louis-Matsika Jan 8, 2025
1148f73
fix svg size
Louis-Matsika Jan 8, 2025
5cf2dce
WSTEAM1-1558: A11y updates
Isabella-Mitchell Jan 8, 2025
3f714a3
WSTEAM1-1558: A11y update
Isabella-Mitchell Jan 8, 2025
e0e1afd
add focus and hover
Louis-Matsika Jan 8, 2025
5d901a5
WSTEAM1-1558: UX updates
Isabella-Mitchell Jan 8, 2025
5175582
fix close button
Louis-Matsika Jan 9, 2025
6d19546
close button media text
Louis-Matsika Jan 9, 2025
00bcad1
WSTEAM1-1558: Improves nested styles syntax
Isabella-Mitchell Jan 9, 2025
581bd13
re arrangeelements and close button styles
Louis-Matsika Jan 9, 2025
870c2b1
WSTEAM1-1558: adds translation
Isabella-Mitchell Jan 10, 2025
6ea6abd
Merge pull request #12263 from bbc/WSTEAM1-1558-watch-live-ux-a11y
Isabella-Mitchell Jan 10, 2025
56275a4
add forced colours
Louis-Matsika Jan 10, 2025
fda033e
forced colours fix
Louis-Matsika Jan 10, 2025
ef4319e
fix margins
Louis-Matsika Jan 10, 2025
e3b0d97
WSTEAM1-1543: Update
shayneahchoon Jan 10, 2025
675103f
WSTEAM1-1543: Update
shayneahchoon Jan 10, 2025
0c45e9c
set up translations
Louis-Matsika Jan 10, 2025
6555181
get PR ready
Louis-Matsika Jan 10, 2025
714f8f6
WSTEAM1-1543: Update
shayneahchoon Jan 10, 2025
112d6dc
merge fix
Louis-Matsika Jan 10, 2025
d59d64a
WSTEAM1-1543: Update
shayneahchoon Jan 10, 2025
299bde4
WSTEAM1-1543: Add health check
shayneahchoon Jan 10, 2025
6b6074a
WSTEAM1-1543: Update
shayneahchoon Jan 10, 2025
dbc75a3
fix default close translation
Louis-Matsika Jan 10, 2025
65292a8
WSTEAM1-1557: Update
shayneahchoon Jan 10, 2025
3848d95
WSTEAM1-1543: Refactor
shayneahchoon Jan 10, 2025
5de85b2
merge
Louis-Matsika Jan 13, 2025
f21c62b
rename component to LiveHeaderMedia
Louis-Matsika Jan 13, 2025
14b2976
remove visually hidden comma
Louis-Matsika Jan 13, 2025
75d9848
update tests
Louis-Matsika Jan 13, 2025
0e37ce0
lint
Louis-Matsika Jan 13, 2025
5ad36e1
update name
Louis-Matsika Jan 13, 2025
46d70e6
update style name
Louis-Matsika Jan 13, 2025
e0ffc21
fix spacings
Louis-Matsika Jan 13, 2025
aa4f024
add sawrm doc
Louis-Matsika Jan 13, 2025
d45fbe2
add new LIVE_MEDIUM colour
Louis-Matsika Jan 13, 2025
301ecaa
update watch now CTA
Louis-Matsika Jan 13, 2025
f2772b1
WSTEAM1-1543: UpdatE
shayneahchoon Jan 13, 2025
3648295
WSTEAM1-1543: Update
shayneahchoon Jan 13, 2025
06cae78
WSTEAM1-1543: Update
shayneahchoon Jan 13, 2025
100ec2e
WSTEAM1-1543: Remove yarn
shayneahchoon Jan 13, 2025
26dc422
WSTEAM1-1543: Remove yarn
shayneahchoon Jan 13, 2025
c0add9d
WSTEAM1-1543: Update
shayneahchoon Jan 14, 2025
cc16283
Merge branch 'latest' into WSTEAM1-1521-LIVE-VIDEO-FRONT-END
karinathomasbbc Jan 14, 2025
9dad4bf
WSTEAM1-1543: Update
shayneahchoon Jan 14, 2025
017ba19
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' into 1543-close-button
shayneahchoon Jan 14, 2025
fcde674
Merge pull request #12264 from bbc/1543-close-button
Louis-Matsika Jan 14, 2025
269f48a
WSTEAM1-1557: Add NoJs (#12269)
shayneahchoon Jan 14, 2025
1d0b4da
Include warnings on first video in collection
karinathomasbbc Jan 14, 2025
29196d6
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of github.com:bbc/si…
karinathomasbbc Jan 14, 2025
ee5b296
WSTEAM1-1584: Inverts focus indicator
Isabella-Mitchell Jan 14, 2025
cc4fc6d
WSTEAM1-1521: Update
shayneahchoon Jan 14, 2025
9bd764f
Merge pull request #12272 from bbc/WSTEAM1-1584-focus-indicator
Isabella-Mitchell Jan 14, 2025
9226ca9
WSTEAM1-1521: Update full screen
shayneahchoon Jan 14, 2025
6e2401b
Merge branch 'WSTEAM1-1521-LIVE-VIDEO-FRONT-END' of github.com:bbc/si…
shayneahchoon Jan 14, 2025
33cc329
WSTEAM1-1521: Update changes
shayneahchoon Jan 14, 2025
4d56898
Merge branch 'latest' into WSTEAM1-1521-LIVE-VIDEO-FRONT-END
shayneahchoon Jan 14, 2025
d59245e
WSTEAM1-1521: Update
shayneahchoon Jan 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/arabic/live/67574192.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"sportDataEvent": { "id": null },
"eavisEvent": { "id": null },
"article": { "id": null },
"mediaCollections": [],
"mediaCollections": null,
"keyHighlight": { "id": null },
"electionBanner": { "id": null },
"supportingLinks": { "id": null },
Expand Down
465 changes: 465 additions & 0 deletions data/mundo/live/c7dkx155e626t.json

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions data/pidgin/live/c7p765ynk9qt.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sportDataEvent": { "id": null },
"eavisEvent": { "id": null },
"article": { "id": null },
"mediaCollections": [{ "id": null }],
"mediaCollections": null,
"keyHighlight": { "id": null },
"electionBanner": { "id": null },
"supportingLinks": { "id": null },
Expand Down Expand Up @@ -207,15 +207,15 @@
"id": "cb0f3228",
"type": "video",
"model": {
"locator": "urn:bbc:pips:pid:p01vz9cq",
"locator": "urn:bbc:pips:pid:p0gh4n67",
"blocks": [
{
"id": "2c039c31",
"type": "clipMedia",
"model": {
"id": "urn:bbc:pips:pid:p01vz9cq",
"id": "urn:bbc:pips:pid:p0gh4n67",
"urns": {
"pipsPid": "urn:bbc:pips:pid:p01vz9cq"
"pipsPid": "urn:bbc:pips:pid:p0gh4n67"
},
"images": [
{
Expand All @@ -233,7 +233,7 @@
"source": "pipsImage"
}
],
"assetPath": "p01vz9cq",
"assetPath": "p0gh4n67",
"type": "video",
"headlines": {
"primaryHeadline": "Lionel Messi Skills",
Expand All @@ -243,8 +243,8 @@
},
"analytics": {
"page": {
"name": "programmes.av.p01vz9cq.page",
"contentId": "urn:bbc:pips:pid:p01vz9cq",
"name": "programmes.av.p0gh4n67.page",
"contentId": "urn:bbc:pips:pid:p0gh4n67",
"producer": "PROGRAMMES"
}
},
Expand Down Expand Up @@ -274,16 +274,17 @@
"lastPublished": "2024-02-28T10:32:08Z",
"firstPublished": null,
"video": {
"id": "p01vz9cq",
"id": "p0gh4n67",
"title": "Lionel Messi Skills",
"holdingImage": {
"id": "https://ichef.test.bbci.co.uk/images/ic/$recipe/p01vzbd6.jpg",
"altText": "Gary Lineker talks Messi"
},
"version": {
"id": "p01vz9cs",
"id": "p0gh4n67",
"duration": "PT34S",
"kind": "programme",
"simulcast": "true",
"guidance": "Contains strong language and some upsetting scenes.",
"territories": ["nonuk", "uk"]
},
Expand All @@ -292,7 +293,7 @@
"isUnavailable": false
},
"attributions": null,
"link": { "path": "/programmes/p01vz9cq" },
"link": { "path": "/programmes/p0gh4n67" },
"section": null,
"isSharingAllowed": true
}
Expand Down
2 changes: 1 addition & 1 deletion data/serbian/live/media-23179005/lat.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"article": {
"id": null
},
"mediaCollections": [],
"mediaCollections": null,
"keyHighlight": {
"id": null
},
Expand Down
1 change: 1 addition & 0 deletions docs/User-Experience/colours.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const CROSS_PLATFORM = [
{ colorName: 'SERVICE_NEUTRAL_DARK', colorCode: '#0051AD' },
{ colorName: 'LIVE_CORE', colorCode: '#009E9E' },
{ colorName: 'LIVE_LIGHT', colorCode: '#00CCC7' },
{ colorName: 'LIVE_MEDIUM', colorCode: '#008282' },
{ colorName: 'LIVE_DARK', colorCode: '#006666' },
{ colorName: 'SUCCESS_CORE', colorCode: '#148A00' },
{ colorName: 'SUCCESS_LIGHT', colorCode: '#49CC29' },
Expand Down
48 changes: 48 additions & 0 deletions src/app/components/LiveHeaderMedia/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* eslint-disable camelcase */
/** @jsx jsx */
import { css, jsx, Theme } from '@emotion/react';
import mundoLiveFixture from '#data/mundo/live/c7dkx155e626t.json';
import LiveHeaderMedia from '.';
import { MediaCollection } from '../MediaLoader/types';
import metadata from './metadata.json';

type Props = {
warnings: {
warning_text: string;
warning: {
warning_code: string;
short_description: string;
}[];
};
};

export const Component = ({ warnings }: Props) => {
const fixtureData = mundoLiveFixture.data.mediaCollections;
fixtureData[0].model.version.warnings = warnings;

return (
<div css={({ palette }: Theme) => css({ background: palette.BLACK })}>
<LiveHeaderMedia mediaCollection={fixtureData as MediaCollection[]} />
</div>
);
};

const l1Warning = {
warning_text: 'Contains some upsetting scenes.',
warning: [
{
warning_code: 'L1',
short_description: 'Some upsetting scenes',
},
],
};

export const ComponentWithGuidance = () => <Component warnings={l1Warning} />;

export default {
title: 'Components/LiveHeaderMedia',
Component,
parameters: {
metadata,
},
};
169 changes: 169 additions & 0 deletions src/app/components/LiveHeaderMedia/index.styles.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
import NO_JS_CLASSNAME from '#app/lib/noJs.const';
import pixelsToRem from '#app/utilities/pixelsToRem';
import { css, Theme } from '@emotion/react';

export default {
componentContainer: ({ spacings }: Theme) =>
css({
width: '100%',
marginTop: `${spacings.DOUBLE}rem`,
[`.${NO_JS_CLASSNAME} &`]: {
display: 'none',
},
}),
nojs: ({ palette, spacings, fontSizes, fontVariants }: Theme) =>
css({
...fontSizes.pica,
...fontVariants.sansRegular,
color: palette.WHITE,
div: {
marginTop: `${spacings.DOUBLE}rem`,
},
strong: {
display: 'block',
marginTop: `${spacings.DOUBLE}rem`,
fontWeight: 'normal',
},
}),
mediaButton: ({ mq }: Theme) =>
css({
position: 'relative',
padding: 0,
[mq.FORCED_COLOURS]: {
color: 'canvasText',
},
}),
openButton: () =>
css({
cursor: 'pointer',
backgroundColor: 'unset',
border: 'unset',
textAlign: 'start',
}),
watchLiveCTAText: ({ spacings, palette }: Theme) =>
css({
color: palette.WHITE,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
svg: {
height: `${spacings.DOUBLE}rem`,
width: `${spacings.DOUBLE}rem`,
verticalAlign: 'middle',
fill: 'currentcolor',
color: palette.WHITE,
marginInlineEnd: `${spacings.FULL}rem`,
},
'button:hover &, button:focus-visible &': {
textDecoration: 'underline',
},
}),
title: () =>
css({
display: 'block',
width: '100%',
}),
guidanceMessage: ({ palette, spacings }: Theme) =>
css({
display: 'block',
marginTop: `${spacings.DOUBLE}rem`,
color: palette.GREY_2,
textAlign: 'start',
}),
watchLiveCTA: ({ palette, mq, spacings }: Theme) =>
css({
width: `${pixelsToRem(171)}rem`,
border: 0,
backgroundColor: palette.LIVE_MEDIUM,
padding: `${pixelsToRem(11)}rem`,
marginTop: `${spacings.DOUBLE}rem`,
[mq.GROUP_2_MAX_WIDTH]: {
width: '100%',
},
[mq.FORCED_COLOURS]: {
color: 'canvasText',
border: `${pixelsToRem(2)}rem solid canvasText`,
},
}),
liveMediaStreamText: ({ palette }: Theme) =>
css({
color: palette.GREY_4,
}),
liveMediaStreamContainer: ({ mq }: Theme) =>
css({
maxWidth: '60%',
[mq.GROUP_2_MAX_WIDTH]: {
width: '100%',
},
[mq.GROUP_4_MAX_WIDTH]: {
width: '50%',
},
}),
closeButton: () =>
css({
display: 'flex',
justifyContent: 'space-between',
cursor: 'pointer',
background: 'none',
width: '100%',
border: 0,
lineHeight: 0,
alignItems: 'center',
}),
closeContainer: ({ spacings, palette, mq }: Theme) =>
css({
verticalAlign: 'center',
svg: {
fill: 'currentcolor',
color: palette.WHITE,
height: `${spacings.DOUBLE}rem`,
width: `${spacings.DOUBLE}rem`,
margin: `${pixelsToRem(13)}rem`,
},
backgroundColor: palette.BLACK,
border: `${palette.WHITE} solid ${pixelsToRem(1)}rem`,
'button:hover &, button:focus-visible &': {
backgroundColor: palette.POSTBOX,
outline: `${palette.WHITE} solid ${pixelsToRem(1)}rem`,
},
[mq.FORCED_COLOURS]: {
color: 'canvasText',
},
}),
liveMediaSpan: () =>
css({
maxWidth: '100%',
}),
mediaLoader: ({ spacings }: Theme) =>
css({
maxWidth: '100%',
marginTop: `${spacings.DOUBLE}rem`,
}),
mediaDescription: () =>
css({
display: 'block',
width: '100%',
marginTop: 0,
span: { margin: 0 },
}),
openMediaDescription: ({ palette }: Theme) =>
css({
span: { color: palette.GREY_4 },
}),
closeMediaDescription: ({ mq, palette }: Theme) =>
css({
textAlign: 'start',
span: { color: palette.WHITE },
'button:hover &, button:focus-visible &': {
span: {
textDecoration: 'underline',
[mq.FORCED_COLOURS]: {
textDecoration: 'underline',
},
},
},
}),

underlineFocus: () => css({ display: 'none' }),
hideComponent: () => css({ display: 'none' }),
};
Loading
Loading