Skip to content

Improvements in forums nav sidebar - #1169

Merged
gwprice merged 2 commits into
rc/2013-09-30from
gprice/forum-load-more-focus
Sep 27, 2013
Merged

Improvements in forums nav sidebar#1169
gwprice merged 2 commits into
rc/2013-09-30from
gprice/forum-load-more-focus

Conversation

@gwprice

@gwprice gwprice commented Sep 27, 2013

Copy link
Copy Markdown

@kevinchugh @marcotuts

Caveat: Apparently, when you click "Load more", the newly loaded threads are not always appended to the end of the list. The focus simply goes to whatever thread is after the thread that was previously the last one in the list. If all of the newly loaded threads are inserted higher in the list, then focus will be lost.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you conditionally run this if there is no focus? because this is saying always refocus the last thread, but isnt' there a case where the user is on the second from last thread for example, and then loads more, and those threads append to the end? in this case, don't you want to not change the focus?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is focusing the first thread that follows what was previously the last thread. It's not possible for the user to be focused on the second-to-last thread, because interacting with the "Load more" link moves focus there. One could argue that you don't want to move focus when you do something like click a sort button, but I think that always moving focus is the right thing to do.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right right. not to split hairs, and i'm fine with ignore this, but you can tab to the load more while keeping another thread focused and click the load more link with a screen reader. i think it's acceptable behavior to use your algorithm however.

@marcotuts

Copy link
Copy Markdown
Contributor

👍 works for me. had to make a bunch of posts but the improvements to focus on new posts made it super quick :)

Now, when the list is reset (e.g. by sorting), the first thread is
focused. When the "Load more" link is clicked, upon loading more
threads, focus moves to the thread immediately following the thread
that was previously last in the list.
@kevinchugh

Copy link
Copy Markdown
Contributor

👍

gwprice pushed a commit that referenced this pull request Sep 27, 2013
@gwprice
gwprice merged commit db325e7 into rc/2013-09-30 Sep 27, 2013
@gwprice
gwprice deleted the gprice/forum-load-more-focus branch September 27, 2013 21:13
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Sep 16, 2016
…3_connection_for_ga_operation

Fix cannot get S3 connection for ga_operation openedx#1167
lgp171188 pushed a commit to open-craft/openedx-platform that referenced this pull request Oct 4, 2018
iloveagent57 pushed a commit that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants