[IndexTable] fix sticky cell borders in Chrome v91+ #4283
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Issue
polaris-nextContext
See [css-tables] Collapsed table borders don't follow sticky rows/cells when they stick w3c/csswg-drafts#3136
WHAT is this pull request doing?
Restores missing borders for the non-scrolling view of the IndexTable cells, by using border instead of box-shadow.
Before, missing borders:

After, borders restored:

This does not fix the more complex behaviour where box shadows were used for scrolling sticky cells.
I did some quick testing and it doesn't look like we can swap in borders 1:1 for box-shadows here. I don't think I have the bandwidth to explore a full solution, but if anyone wants to pair on it, let me know.
Chrome:

Safari:

How to 🎩
yarn storybookand navigate to any IndexTable example🎩 checklist