Improve "Load More" button #16

Closed
opened 2023-04-04 06:49:54 +00:00 by phlaym · 1 comment
Owner
  • Improve loading indicator
  • Display error messages if loading fails (might need to be its own ticket)
  • Improve behaviour when no older posts are available
    • Check if more posts are available directly in response instead of after receiving an empty array of posts
    • Make it clearer that no older posts are available
    • Disabled button doesn't look disabled enough
  • Lots of duplicate code between loading newer and older posts => refactor
- [x] Improve loading indicator - [x] Display error messages if loading fails (might need to be its own ticket) - [x] Improve behaviour when no older posts are available - [x] Check if more posts are available directly in response instead of after receiving an empty array of posts - [x] Make it clearer that no older posts are available - [x] Disabled button doesn't look disabled enough - [x] Lots of duplicate code between loading newer and older posts => refactor
phlaym added this to the Version 1.1 milestone 2023-04-04 06:49:54 +00:00
phlaym added the
enhancement
label 2023-04-04 06:49:54 +00:00
phlaym changed title from Improve UI for "Load More" button to Improve "Load More" button 2023-04-04 09:41:51 +00:00
Author
Owner

Suggestion for improved design:

button:not(:disabled) {
  box-shadow: 2px 2px 1px 0 var(--color-link-visited);
}
button:hover:not(:disabled) {
 box-shadow: 4px 4px 3px 0 var(--color-link)
 translate: -2px -2px;
}

Colors need tweaking though!

Do not use gray for disabled button, switch to a very de-saturated version of the regular color

Suggestion for improved design: ```css button:not(:disabled) { box-shadow: 2px 2px 1px 0 var(--color-link-visited); } button:hover:not(:disabled) { box-shadow: 4px 4px 3px 0 var(--color-link) translate: -2px -2px; } ``` Colors need tweaking though! Do not use gray for disabled button, switch to a *very* de-saturated version of the regular color
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: phlaym/moshing-mammut#16
No description provided.