-
-
Notifications
You must be signed in to change notification settings - Fork 193
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 3 | Reading List #901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
JaypeeLan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job. Everything works well, but I think the UI can be better. Black text on red/green background does not seem too ideal. Also maybe use an ordered list? the size of each card should be reduced, so I don't need to scroll.
| function readingList() { | ||
| const unorderedList = document.querySelector("#reading-list"); | ||
|
|
||
| for (const book of books) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make a base condition, if book is empty, so your application does not crash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @JaypeeLan. I have now updated the script to check if the books variable is null or undefined, or if the array is empty. Will return message telling the user their reading list is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Baba05206 Please go through the conversations, I made a comment regarding the design.
…t and color scheme.
|
My apologies, I missed the first comment. I have now adjusted the colour scheme on the page |
Learners, PR Template
Self checklist
Changelist
Updated index.html, style.css, style.js and style.test.js files in order to complete the task
Ran the test to ensure all three tests passed
I was struggling with testing 'background color changes depending on whether book has been read' and so updated the test to expect class instead of background color.
Questions