Skip to content

Commit

Permalink
Merge pull request #616 from Neovici/feat/part-scroller
Browse files Browse the repository at this point in the history
feat: add scroller part
  • Loading branch information
megheaiulian authored May 31, 2024
2 parents 05851eb + 408909c commit 839dde0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/coverage/
__snapshots__/
2 changes: 1 addition & 1 deletion lib/render-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const renderList = ({
</div>
</div>`,
)}
<div class="tableContent-scroller" id="scroller">
<div class="tableContent-scroller" id="scroller" part="scroller">
<cosmoz-grouped-list
id="groupedList"
.data=${processedItems}
Expand Down
29 changes: 29 additions & 0 deletions test/__snapshots__/render-list.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,32 @@ snapshots['render-list error'] = `<div
</div>
`;
/* end snapshot render-list error */
snapshots["render-list error"] =
`<div
class="tableContent"
id="tableContent"
>
<div class="overlay tableContent-empty">
<iron-icon icon="icons:error">
</iron-icon>
<div class="tableContent-empty-message">
<h3>
Error loading data
</h3>
<p>
An error occurred
</p>
</div>
</div>
<div
class="tableContent-scroller"
id="scroller"
part="scroller"
>
<cosmoz-grouped-list id="groupedList">
</cosmoz-grouped-list>
</div>
</div>
`;
/* end snapshot render-list error */

0 comments on commit 839dde0

Please sign in to comment.