about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/intersection_observer_article.js
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-09-29 19:01:19 -0500
committerGitHub <noreply@github.com>2018-09-29 19:01:19 -0500
commitc065717b6765435e7374975ae9d71ebaa224f92c (patch)
tree603dc9c3b9def7b7a079f9403d3b5f9cc2d507ea /app/javascript/flavours/glitch/components/intersection_observer_article.js
parent2bb3c8c9446dd8cd47e0e0b4d9e899b8a5a546f2 (diff)
parent530da545a532d7e3cbcc5168e97410bd86d92117 (diff)
Merge pull request #681 from ThibG/glitch-soc/fixes/accessibility
Port various accessibility improvements from upstream
Diffstat (limited to 'app/javascript/flavours/glitch/components/intersection_observer_article.js')
-rw-r--r--app/javascript/flavours/glitch/components/intersection_observer_article.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/intersection_observer_article.js b/app/javascript/flavours/glitch/components/intersection_observer_article.js
index f7f6b0a53..6eeca5598 100644
--- a/app/javascript/flavours/glitch/components/intersection_observer_article.js
+++ b/app/javascript/flavours/glitch/components/intersection_observer_article.js
@@ -107,7 +107,7 @@ export default class IntersectionObserverArticle extends ImmutablePureComponent
       return (
         <article
           ref={this.handleRef}
-          aria-posinset={index}
+          aria-posinset={index + 1}
           aria-setsize={listLength}
           style={{ height: `${this.height || cachedHeight}px`, opacity: 0, overflow: 'hidden' }}
           data-id={id}
@@ -119,7 +119,7 @@ export default class IntersectionObserverArticle extends ImmutablePureComponent
     }
 
     return (
-      <article ref={this.handleRef} aria-posinset={index} aria-setsize={listLength} data-id={id} tabIndex='0'>
+      <article ref={this.handleRef} aria-posinset={index + 1} aria-setsize={listLength} data-id={id} tabIndex='0'>
         {children && React.cloneElement(children, { hidden: false })}
       </article>
     );