Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2684 from bbc/scrollbar-av-player-fix
Browse files Browse the repository at this point in the history
AV: iFrame scrollbar media player fix
  • Loading branch information
HarveyPeachey authored Nov 26, 2019
2 parents 7114b81 + 9914207 commit ca71d2a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/psammead-media-player/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| 2.3.3 | [PR#2684](https://github.com/bbc/psammead/pull/2684) Added scrolling attribute to disable scrolling on canonical and amp iframe |
| 2.3.2 | [PR#2666](https://github.com/bbc/psammead/pull/2666) Talos - Bump Dependencies - @bbc/psammead-play-button |
| 2.3.1 | [PR#2663](https://github.com/bbc/psammead/pull/2663) Talos - Bump Dependencies - @bbc/psammead-assets |
| 2.3.0 | [PR#2628](https://github.com/bbc/psammead/pull/2628) Add guidance message for assistive technology in Play Button and hide it in Guidance |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/psammead-media-player/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-media-player",
"version": "2.3.2",
"version": "2.3.3",
"description": "Provides a media player with optional placeholder",
"main": "dist/index.js",
"module": "esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`Media Player: Amp should render an amp-iframe with an amp-img nested in
frameborder="0"
layout="fill"
sandbox="allow-scripts allow-same-origin"
scrolling="no"
src="https://foo.bar/iframe"
title="Media player"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const AmpMediaPlayer = ({
<amp-iframe
sandbox="allow-scripts allow-same-origin"
layout="fill"
scrolling="no"
frameborder="0"
src={src}
title={title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports[`Media Player: Canonical should render an iframe 1`] = `
allow="autoplay; fullscreen"
allowfullscreen=""
class="c0"
scrolling="no"
src="https://foo.bar/iframe"
title="Media player"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const Canonical = ({ src, title, placeholderSrc }) => {
src={src}
title={title}
allow="autoplay; fullscreen"
scrolling="no"
gesture="media"
allowFullScreen
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports[`Media Player: AMP Entry renders a landscape container with an amp-ifram
frameborder="0"
layout="fill"
sandbox="allow-scripts allow-same-origin"
scrolling="no"
src="http://foo.bar/iframe/amp"
title="Media player"
>
Expand Down Expand Up @@ -69,6 +70,7 @@ exports[`Media Player: AMP Entry renders a portrait container with amp-iframe an
frameborder="0"
layout="fill"
sandbox="allow-scripts allow-same-origin"
scrolling="no"
src="http://foo.bar/iframe/amp"
title="Media player"
>
Expand Down Expand Up @@ -113,6 +115,7 @@ exports[`Media Player: AMP Entry renders the audio skin 1`] = `
frameborder="0"
layout="fill"
sandbox="allow-scripts allow-same-origin"
scrolling="no"
src="https://www.test.bbc.com/ws/av-embeds/media/bbc_korean_radio/liveradio"
title="Audio player"
>
Expand Down Expand Up @@ -625,6 +628,7 @@ exports[`Media Player: Canonical Entry renders an iframe when showPlaceholder is
allow="autoplay; fullscreen"
allowfullscreen=""
class="c1"
scrolling="no"
src="http://foo.bar/iframe"
title="Media player"
/>
Expand Down Expand Up @@ -655,6 +659,7 @@ exports[`Media Player: Canonical Entry renders the audio skin 1`] = `
allow="autoplay; fullscreen"
allowfullscreen=""
class="c1"
scrolling="no"
src="https://www.test.bbc.com/ws/av-embeds/media/bbc_korean_radio/liveradio"
title="Audio player"
/>
Expand Down

0 comments on commit ca71d2a

Please sign in to comment.