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

[IndexTable] Fix header cutting off loading banner due to z-index #8364

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

stefanlegg
Copy link
Contributor

WHY are these changes introduced?

Related to: #8277
In order to support some tooltip behavior the z-index changed for table headers. Loading banners need to have their z-index moved up to not be cut off by the header.

Example issue:
Screenshot 2023-02-15 at 9 42 03 AM

WHAT is this pull request doing?

This PR removes --pc-index-table-loading-panel and the loading banner will now use --p-z-2 for z-index instead.

Example with fix:
Screenshot 2023-02-15 at 9 42 21 AM

🎩 checklist

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2023

size-limit report 📦

Path Size
polaris-react-cjs 220.12 KB (0%)
polaris-react-esm 139.98 KB (0%)
polaris-react-esnext 195.88 KB (-0.02% 🔽)
polaris-react-css 42.39 KB (-0.05% 🔽)

@stefanlegg
Copy link
Contributor Author

[note] Checked this z-index against sticky headers to make sure those dont overlap either
Screenshot 2023-02-15 at 10 28 49 AM

@LauraAubin
Copy link
Contributor

/snapit

@github-actions
Copy link
Contributor

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

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

yarn add @shopify/polaris-cli@0.0.0-snapshot-release-20230215161735
yarn add @shopify/polaris-icons@0.0.0-snapshot-release-20230215161735
yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230215161735
yarn add @shopify/polaris@0.0.0-snapshot-release-20230215161735
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230215161735
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230215161735

@stefanlegg stefanlegg merged commit d061915 into main Feb 17, 2023
@stefanlegg stefanlegg deleted the sl-loading-z branch February 17, 2023 21:00
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
…opify#8364)

### WHY are these changes introduced?

Related to: Shopify#8277
In order to support some tooltip behavior the z-index changed for table
headers. Loading banners need to have their z-index moved up to not be
cut off by the header.

Example issue:
![Screenshot 2023-02-15 at 9 42 03
AM](https://user-images.githubusercontent.com/510085/219060518-a2fdffab-9263-42c0-8647-9278f8322c52.jpg)

### WHAT is this pull request doing?

This PR removes `--pc-index-table-loading-panel` and the loading banner
will now use `--p-z-2` for z-index instead.

Example with fix:
![Screenshot 2023-02-15 at 9 42 21
AM](https://user-images.githubusercontent.com/510085/219060886-8f6c5d18-e596-41b9-9e6a-1c4e42b8a728.jpg)

### 🎩 checklist

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

None yet

3 participants