nss-evening-cohort-10 / foundations-group-project-pardon-us

foundations-group-project-pardon-us created by GitHub Classroom
4 stars 0 forks source link

Music: Song List Click Event #13

Closed CharityBunyon closed 5 years ago

CharityBunyon commented 5 years ago

Story

As a user, I would like to click an expand arrow to view the track list for each album.

Acceptance Criteria

WHEN The user clicks the arrow THEN The album cover image minimizes AND a track list displays to the right of the image AND the expand arrow changes to a minimize arrow

Development Notes

aclai4067 commented 5 years ago

image

aclai4067 commented 5 years ago

reworked the plan for this a little. Found it worked better to write one function for both expanding and hiding the track list, which toggles the classes and reuses the same arrow event listener. New function name: displayAndHideTracks, new id for arrows: toggleTracks-${[i]}