tsdataclinic / scout

Scout is a data discovery tool to explore open data portals worldwide.
https://scout.tsdataclinic.com
Apache License 2.0
33 stars 12 forks source link

Make entire Collection card clickable #321

Closed jps327 closed 2 years ago

jps327 commented 2 years ago

Summary

This change makes the entire Collection card clickable. We do this by using the <Link> tag as the top-level node for the Card. Using a Link tag allows us to take advantage of its builtin benefits:

I also added some CSS changes here to add some hover effects when the card or card title is moused over.

Screenshots or Videos (if applicable)

Screen Shot 2022-10-04 at 5 50 45 PM

Related Issues

Closes #259

Test Plan

  1. Create a new collection
  2. Go to "My Collections"
  3. Click anywhere on the card to access the collection. It should work.
  4. Go back. Now click on the title. The title should still work as a link.
  5. Go back. Click on the trash can icon. This should not trigger the Collection link, instead the confirmation modal should pop up asking if we're sure if we want to delete.

Checklist Before Requesting a Review