Skip to content

Dynamic data attribute for self hosted video, remove wrapper#16322

Open
frederickobrien wants to merge 2 commits into
mainfrom
class-name-for-long-non-yt-vids
Open

Dynamic data attribute for self hosted video, remove wrapper#16322
frederickobrien wants to merge 2 commits into
mainfrom
class-name-for-long-non-yt-vids

Conversation

@frederickobrien

Copy link
Copy Markdown
Contributor

A bit of tidying around self hosted videos, this adjusts the figure's gu data element to be dynamic like the class name is and also removes an unnecessary wrapper <div> element by moving some bottom padding to the figure element inside the island, where it probably belongs anyway.

Co-Authored-By: Pip <47357469+pippinpen@users.noreply.github.com>
Co-Authored-By: Alessia Amitrano <alessia.amitranobo@gmail.com>
@frederickobrien frederickobrien self-assigned this Jul 3, 2026
@frederickobrien frederickobrien added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jul 3, 2026
@frederickobrien frederickobrien added this to the Interactives milestone Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label Jul 3, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

return (
<figure
css={css`
margin-bottom: ${space[3]}px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that this will affect self hosted video rendered on fronts, as well as articles, which I don't think is intended.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch, sorry. Have made it apply only in articles in 15fb6de

@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label Jul 3, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants