-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(atomic): hide unhydrated results (#4900)
https://coveord.atlassian.net/browse/KIT-3775 Inspired by https://bbellmyers.github.io/2020/09/27/fouc-stencil.html. Not a definitive fix: When Lit migration is done for the atomic-result, we should validate for regression on that front, and also try to improve the behavior even so slightly. It might also be preferable to migrate all result components first, so that we can "cut" this behavior neatly. (would likely not happen because I _think_ we scan documentFragment from template element, so we should have all the element defined by then (tho maybe not because of race conditions, in which case https://www.abeautifulsite.net/posts/flash-of-undefined-custom-elements might be adapted for our needs)
- Loading branch information
1 parent
3ba383c
commit 5bb6b51
Showing
8 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -45,3 +45,7 @@ | |
} | ||
} | ||
} | ||
|
||
atomic-product:not(.hydrated) { | ||
visibility: hidden; | ||
} |
This file contains 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
3 changes: 3 additions & 0 deletions
3
...ght/result-lists/atomic-insight-folded-result-list/atomic-insight-folded-result-list.pcss
This file contains 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
@import '../../../common/item-list/styles/placeholders.pcss'; | ||
@import '../styles/list-display.pcss'; | ||
atomic-result:not(.hydrated) { | ||
visibility: hidden; | ||
} |
3 changes: 3 additions & 0 deletions
3
...omponents/insight/result-lists/atomic-insight-result-list/atomic-insight-result-list.pcss
This file contains 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
@import '../../../common/item-list/styles/placeholders.pcss'; | ||
@import '../styles/list-display.pcss'; | ||
atomic-result:not(.hydrated) { | ||
visibility: hidden; | ||
} |
This file contains 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 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
3 changes: 3 additions & 0 deletions
3
...c/components/search/result-lists/atomic-folded-result-list/atomic-folded-result-list.pcss
This file contains 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
@import '../../../common/item-list/styles/placeholders.pcss'; | ||
@import '../../../common/item-list/styles/list-display.pcss'; | ||
atomic-result:not(.hydrated) { | ||
visibility: hidden; | ||
} |
This file contains 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