Standardize on 'card' vs. 'tile' in code
Closed this issue · 2 comments
also posted on Slack
The concept of "rectangular clickable box that is shown for each item in a collection" has two names across the codebase. An example is this component named FilterShowcaseTile
which is defined by props and styled components with Card
in the name.
nextstrain.org/static-site/src/components/ListResources/index.tsx
Lines 260 to 287 in 6b7f354
We should be consistent and use just one name for this concept.
For reference, these are the current places that this concept is used:
I prefer 'tile' based on snippets from various answers to this UX StackExchange question:
I think of tiles as … fixed in size … and spaced out regularly along a grid.
Tiles are almost always incomplete providers of information: if you want to know anything about them, you have to interact with them.
Cards on the other hand imply that all of the relevant information are contained on them.