From a0d3a891804a7e161da2b95d0d58db8ace47d224 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 10 Jun 2018 19:49:39 -0700 Subject: [PATCH] remove useless aria-hidden (#386) --- routes/_components/list/ListItem.html | 6 ++---- routes/_components/virtualList/VirtualListItem.html | 2 +- tests/utils.js | 8 ++------ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/routes/_components/list/ListItem.html b/routes/_components/list/ListItem.html index 2044067..d67b63c 100644 --- a/routes/_components/list/ListItem.html +++ b/routes/_components/list/ListItem.html @@ -1,7 +1,5 @@ -
+
article[aria-posinset="${n}"]` + return `.list-item > article[aria-posinset="${n}"]` } export function getNthStatusContent (n) { @@ -173,12 +173,8 @@ export function getNthStatusAndImage (nStatus, nImage) { return $(`${getNthStatusSelector(nStatus)} .status-media .show-image-button:nth-child(${nImage + 1}) img`) } -export function getLastVisibleStatus () { - return $(`div[aria-hidden="false"] > article[aria-posinset]`).nth(-1) -} - export function getFirstVisibleStatus () { - return $(`div[aria-hidden="false"] > article[aria-posinset]`).nth(0) + return $(`.list-item > article[aria-posinset]`).nth(0) } export function getNthReplyButton (n) {