remove useless aria-hidden (#386)
This commit is contained in:
parent
11dcaf0cf3
commit
a0d3a89180
|
@ -1,7 +1,5 @@
|
|||
<div
|
||||
id={`list-item-${key}`}
|
||||
aria-hidden="false"
|
||||
>
|
||||
<div class="list-item"
|
||||
id={`list-item-${key}`} >
|
||||
<svelte:component this={component}
|
||||
virtualProps={props}
|
||||
virtualIndex={index}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="virtual-list-item {shown ? 'shown' : ''}"
|
||||
<div class="virtual-list-item list-item {shown ? 'shown' : ''}"
|
||||
aria-hidden={!shown}
|
||||
virtual-list-key={key}
|
||||
ref:node
|
||||
|
|
|
@ -154,7 +154,7 @@ export function getNthStatus (n) {
|
|||
}
|
||||
|
||||
export function getNthStatusSelector (n) {
|
||||
return `div[aria-hidden="false"] > 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) {
|
||||
|
|
Loading…
Reference in a new issue