Skip to content

Conversation

@sophschneider
Copy link
Contributor

@sophschneider sophschneider commented Sep 30, 2022

WHY are these changes introduced?

Fixes #6864 #6859 https://github.com/Shopify/shopify/issues/355172

Visual update to the VideoThumbnail play button redesigned by the Admin Quality Crew team

https://5d559397bae39100201eedc1-butsvtcrne.chromatic.com/?path=/story/all-components-videothumbnail--default
https://admin.web.web-p6n3.sophie-schneider.us.spin.dev/store/shop1/marketing

WHAT is this pull request doing?

Before: existing VideoThumbnail

Screen Shot 2022-10-04 at 10 29 59 AM

Screen Shot 2022-10-04 at 10 20 14 AM

After: UX updates

Screen Shot 2022-10-04 at 10 31 11 AM

Screen Shot 2022-10-04 at 10 20 32 AM

How to 🎩

Resize the windows and test the hover states in the following:

🎩 checklist

Voice over

Screen Shot 2022-10-03 at 7 05 04 PM

@sophschneider sophschneider marked this pull request as draft September 30, 2022 20:51
@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2022

size-limit report 📦

Path Size
polaris-react-cjs 204.7 KB (-0.11% 🔽)
polaris-react-esm 131.11 KB (-0.1% 🔽)
polaris-react-esnext 186.39 KB (-0.08% 🔽)
polaris-react-css 41.43 KB (-0.06% 🔽)

@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch 4 times, most recently from c91e5d0 to a1df087 Compare October 3, 2022 23:06
@sophschneider
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2022

🫰✨ Thanks @sophschneider! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221003231640
yarn add @shopify/polaris@0.0.0-snapshot-release-20221003231640

@Shopify Shopify deleted a comment from github-actions bot Oct 4, 2022
<div
className={styles.Thumbnail}
style={{backgroundImage: `url(${thumbnailUrl})`}}
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

separated out the background image from the wrapping div so that the image overflow wouldn't hide the play buttons when the image cover had to be cropped. For example, on mobile:

Screen Shot 2022-10-04 at 10 20 14 AM

Screen Shot 2022-10-04 at 10 20 32 AM

@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch 2 times, most recently from 6fec50b to ba10689 Compare October 4, 2022 15:25
width: 100%;
height: 100%;
padding-bottom: auto;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't used

Copy link
Member

@alex-page alex-page Oct 5, 2022

Choose a reason for hiding this comment

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

I wish there was a tool to find unused scss class names. Could be impactful across multiple repos.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was actually looking into something like that this morning :D Definitely possible and would be so useful

@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch from ba10689 to ab2ff76 Compare October 4, 2022 15:44
onTouchStart={onBeforeStartPlaying}
>
<img className={styles.PlayIcon} src={PlayIcon} alt="" />
{timeStampMarkup}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving this inside since it changes opacity on hover and the button is the whole thumbnail

@sophschneider sophschneider changed the title [WIP][VideoThumbmail] Improve VideoThumbnail play button [VideoThumbmail] Improve VideoThumbnail play button Oct 4, 2022
@sophschneider sophschneider changed the title [VideoThumbmail] Improve VideoThumbnail play button [WIP][VideoThumbmail] Improve VideoThumbnail play button Oct 4, 2022
@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch from ab2ff76 to d44323e Compare October 4, 2022 15:59
@sophschneider sophschneider changed the title [WIP][VideoThumbmail] Improve VideoThumbnail play button [VideoThumbmail] Improve VideoThumbnail play button Oct 4, 2022
@sophschneider
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2022

🫰✨ Thanks @sophschneider! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221004161141
yarn add @shopify/polaris@0.0.0-snapshot-release-20221004161141

@sophschneider sophschneider marked this pull request as ready for review October 4, 2022 16:20
@sophschneider sophschneider requested a review from mrcthms October 4, 2022 20:54
Copy link
Contributor

@mrcthms mrcthms left a comment

Choose a reason for hiding this comment

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

Approved as long as we don't need the updates to the Timestamp that occur on hover on focus as well

<span className={styles.PlayIcon}>
<Icon source={PlayMinor} />
</span>
<Text
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a Text component now?! 🤯

Copy link
Member

Choose a reason for hiding this comment

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

@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch 2 times, most recently from 5bef0ea to 71dbd69 Compare October 5, 2022 14:33
@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch from 71dbd69 to 3a96c92 Compare October 5, 2022 17:01
@sophschneider sophschneider force-pushed the sophie/video-thumbnail branch from 3a96c92 to 66aa459 Compare October 5, 2022 19:06
}

&:hover .Timestamp {
background-color: rgba(0, 0, 0, 0.8);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

are these custom colours ok? design had black with this opacity and no token was suitable

Copy link
Member

Choose a reason for hiding this comment

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

They are okay for now. We can find/fix them up later.

@sophschneider sophschneider merged commit 4b95fdc into main Oct 6, 2022
@sophschneider sophschneider deleted the sophie/video-thumbnail branch October 6, 2022 16:16
@github-actions github-actions bot mentioned this pull request Oct 6, 2022
kyledurand pushed a commit that referenced this pull request Oct 7, 2022
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris-migrator@0.4.0

### Minor Changes

- [#7216](#7216)
[`fbf2f8832`](fbf2f88)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Add
migration to replace static mixins with declarations

### Patch Changes

- [#7328](#7328)
[`b31f51f25`](b31f51f)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Add
namespace support to the `replace-static-breakpoint-mixins` migration

## @shopify/polaris@10.6.0

### Minor Changes

- [#7360](#7360)
[`f7140123d`](f714012)
Thanks [@mrcthms](https://github.com/mrcthms)! - Update `IndexTable` in
sortable mode to fix visual bugs and include label Tooltips

### Patch Changes

- [#7361](#7361)
[`b1b576403`](b1b5764)
Thanks [@kyledurand](https://github.com/kyledurand)! - Use state
callback in page actions


- [#7319](#7319)
[`4b95fdc64`](4b95fdc)
Thanks [@qt314](https://github.com/qt314)! - Update the `VideoThumbnail`
play button user experience

## @shopify/plugin-polaris@0.0.8

### Patch Changes

- Updated dependencies
\[[`fbf2f8832`](fbf2f88),
[`b31f51f25`](b31f51f)]:
    -   @shopify/polaris-migrator@0.4.0

## polaris.shopify.com@0.21.0

### Minor Changes

- [#7254](#7254)
[`61cf086ed`](61cf086)
Thanks [@nickpresta](https://github.com/nickpresta)! - Added ability to
collapse props that have been expanded.

### Patch Changes

- [#7305](#7305)
[`b0445cf9b`](b0445cf)
Thanks [@selenehinkley](https://github.com/selenehinkley)! - Added
"Getting started" section

- Updated dependencies
\[[`f7140123d`](f714012),
[`b1b576403`](b1b5764),
[`4b95fdc64`](4b95fdc)]:
    -   @shopify/polaris@10.6.0

## polaris-for-figma@0.0.22

### Patch Changes

- Updated dependencies
\[[`f7140123d`](f714012),
[`b1b576403`](b1b5764),
[`4b95fdc64`](4b95fdc)]:
    -   @shopify/polaris@10.6.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the video play button user experience

3 participants