-
Notifications
You must be signed in to change notification settings - Fork 28
Conditional sticky table head shadows #2010
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b575781
Use @storybook/testing-library for Storybook play functions
rogermparent 22b2546
Stop using screen
rogermparent 0891df3
Make header shadow only appear when scrolled
rogermparent 7ac8f5e
Merge branch 'storybook-testing-library' into conditional-table-shadows
rogermparent 09b68c2
Add story for scrolled table
rogermparent 5c121b1
Merge branch 'main' into conditional-table-shadows
rogermparent 2292037
Remove chromatic delay on MultiView Zoomed plot
rogermparent b20d192
Remove chromatic delays
rogermparent db47df5
Await multiview plot
rogermparent 31838ba
Merge branch 'main' into storybook-testing-library
rogermparent 284f11a
Merge branch 'storybook-testing-library' of github.com:iterative/vsco…
rogermparent 8f48881
Remove react call to findByText
rogermparent 40eab16
Add chromatic viewport
rogermparent 535d769
Use scrollable viewport for chromatic
rogermparent 278adbb
Add wrapper element to scrolled story for chromatic
rogermparent a03256f
Merge branch 'main' of github.com:iterative/vscode-dvc into condition…
rogermparent 63136af
Actually export the scrolled story
rogermparent e7ca0ac
rename variable and class
rogermparent 5a20636
Merge branch 'main' into conditional-table-shadows
rogermparent 60c1b5d
Merge branch 'main' into conditional-table-shadows
rogermparent 327e456
Merge branch 'main' into conditional-table-shadows
rogermparent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,13 @@ const mutationObserverMock = jest.fn().mockImplementation(() => { | |
| }) | ||
| global.MutationObserver = mutationObserverMock | ||
|
|
||
| const intersectionObserverMock = jest.fn().mockImplementation(() => { | ||
| return { | ||
| disconnect: jest.fn(), | ||
| observe: jest.fn(), | ||
| unobserve: jest.fn() | ||
| } | ||
| }) | ||
| global.IntersectionObserver = intersectionObserverMock | ||
|
Comment on lines
+18
to
+25
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the job of keeping things from breaking and not much more. Could be made better if we wanted to actually puppet the observer, but I think we have better ways to test most scenarios it would apply to. |
||
|
|
||
| StyleUtils.getThemeValue = jest.fn().mockImplementation(() => '#ffffff') | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.