Skip to content

Conversation

@mrcthms
Copy link
Contributor

@mrcthms mrcthms commented Feb 22, 2024

WHY are these changes introduced?

Addresses https://github.com/Shopify/web/issues/119227

Reliant on #11622 merging before this can merge.

Updates the table variant of the Pagination component to match the new required UI. Figma for reference.

WHAT is this pull request doing?

  • Centre-align buttons
  • Add prominence to buttons with background color that's different to surrounding box.

How to 🎩

Spin URL: https://admin.web.pagination-refresh.marc-thomas.eu.spin.dev/store/shop1/products?selectedView=all

🎩 checklist

@mrcthms
Copy link
Contributor Author

mrcthms commented Feb 22, 2024

/snapit

@github-actions
Copy link
Contributor

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

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

yarn add @shopify/polaris-icons@0.0.0-snapshot-20240222132424
yarn add @shopify/polaris@0.0.0-snapshot-20240222132424

@ouellettejordan ouellettejordan self-requested a review February 22, 2024 15:30
Copy link

@ouellettejordan ouellettejordan left a comment

Choose a reason for hiding this comment

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

Looks good, however I just noticed we're missing a bottom shadow on this bottom area on mobile web. This seems to be an existing issue, so I wouldn't say is a blocker, but if it's easy to fix in this PR, let's do it. If we decide not to, please create an issue in our board to address separately.

Screenshot 2024-02-22 at 10 30 07 AM

@ouellettejordan ouellettejordan self-requested a review February 22, 2024 15:55
Copy link

@ouellettejordan ouellettejordan left a comment

Choose a reason for hiding this comment

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

Just noticed un-even top and bottom margin on small screen (however verify margins are equal on large screen)...

Screenshot 2024-02-22 at 10 56 31 AM

@mrcthms
Copy link
Contributor Author

mrcthms commented Feb 22, 2024

/snapit

@github-actions
Copy link
Contributor

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

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

yarn add @shopify/polaris-icons@0.0.0-snapshot-20240222162049
yarn add @shopify/polaris@0.0.0-snapshot-20240222162049

@mrcthms
Copy link
Contributor Author

mrcthms commented Feb 22, 2024

@ouellettejordan

Looks good, however I just noticed we're missing a bottom shadow on this bottom area on mobile web.

This is a separate issue, we remove the shadow on the Card on small screens. The Card component wraps the IndexTable on the Products index. There's not an option to not do this behaviour, so we'd have to make an update to the Card to allow us to keep the shadow on the card on small screens

Screen.Recording.2024-02-22.at.16.13.03.mov

@ouellettejordan ouellettejordan self-requested a review February 22, 2024 17:04
Copy link

@ouellettejordan ouellettejordan left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@mrcthms mrcthms merged commit 1ac6382 into main Feb 26, 2024
@mrcthms mrcthms deleted the mrcthms-center-align-pagination branch February 26, 2024 10:42
mrcthms pushed a commit that referenced this pull request Feb 26, 2024
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@12.19.0

### Minor Changes

- [#11399](#11399)
[`0134d2378`](0134d23)
Thanks [@sophschneider](https://github.com/sophschneider)! - Added
`PositionedOverlay` scroll support for all scroll containers


- [#11622](#11622)
[`1f81501c8`](1f81501)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated the BulkActions
component to include logic to handling selecting and deselecting rows


- [#11637](#11637)
[`1ac638246`](1ac6382)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated Pagination
table variant to have more prominent and centrally-aligned actions

### Patch Changes

- [#11644](#11644)
[`b95fc9807`](b95fc98)
Thanks [@kyledurand](https://github.com/kyledurand)! - Removed nav
wrapper from breadcrumbs since it now only renders a single link

## polaris.shopify.com@0.63.2

### Patch Changes

- Updated dependencies
\[[`0134d2378`](0134d23),
[`1f81501c8`](1f81501),
[`1ac638246`](1ac6382),
[`b95fc9807`](b95fc98)]:
    -   @shopify/polaris@12.19.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
### WHY are these changes introduced?

Addresses Shopify/web#119227

Reliant on Shopify#11622 merging before
this can merge.

Updates the table variant of the Pagination component to match the new
required UI. [Figma for
reference](https://www.figma.com/file/shC6hyM1MC60abgslhpUib/Index-bulk-actions?type=design&node-id=11-207471&mode=design&t=alwlAtMB43g2Kk1h-0).

### WHAT is this pull request doing?

- Centre-align buttons
- Add prominence to buttons with background color that's different to
surrounding box.

### How to 🎩

Spin URL:
https://admin.web.pagination-refresh.marc-thomas.eu.spin.dev/store/shop1/products?selectedView=all

### 🎩 checklist

- [x] Tested a
[snapshot](https://github.com/Shopify/polaris/blob/main/documentation/Releasing.md#-snapshot-releases)
- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
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.

2 participants