This commit is contained in:
btzr-io 2021-07-14 22:12:40 -05:00
parent 6d7e92d73b
commit 4d4fbe4e9a
3 changed files with 7 additions and 7 deletions

View file

@ -310,13 +310,13 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
})}
>
{isChannelUri && claim ? (
<UriIndicator aria-hidden tabindex={-1} uri={uri} link>
<UriIndicator aria-hidden tabIndex={-1} uri={uri} link>
<ChannelThumbnail uri={uri} small={type === 'inline'} />
</UriIndicator>
) : (
<>
{!pending ? (
<NavLink aria-hidden tabindex={-1} {...navLinkProps}>
<NavLink aria-hidden tabIndex={-1} {...navLinkProps}>
<FileThumbnail thumbnail={thumbnailUrl}>
{/* @if TARGET='app' */}
{claim && !isCollection && (

View file

@ -193,7 +193,7 @@ function ClaimPreviewTile(props: Props) {
'claim-preview__live': live,
})}
>
<NavLink aria-hidden tabindex={-1} {...navLinkProps}>
<NavLink aria-hidden tabIndex={-1} {...navLinkProps}>
<FileThumbnail thumbnail={thumbnailUrl} allowGifs>
{!isChannel && (
<React.Fragment>
@ -248,7 +248,7 @@ function ClaimPreviewTile(props: Props) {
</div>
) : (
<React.Fragment>
<UriIndicator aria-hidden tabindex={-1} uri={uri} link hideAnonymous>
<UriIndicator aria-hidden tabIndex={-1} uri={uri} link hideAnonymous>
<ChannelThumbnail uri={channelUri} xsmall />
</UriIndicator>

View file

@ -68,9 +68,9 @@ const SkipNavigationButton = () => {
const skipNavigation = (e) => {
// Match any focusable element
const focusableElementQuery = `
#main-content [tabindex]:not([tabindex="-1"]):not(:disabled),
#main-content a:not([aria-hidden]):not([tabindex="-1"]):not(:disabled),
#main-content button:not([aria-hidden]):not([tabindex="-1"]):not(:disabled)
#main-content [tabindex]:not([tabIndex="-1"]):not(:disabled),
#main-content a:not([aria-hidden]):not([tabIndex="-1"]):not(:disabled),
#main-content button:not([aria-hidden]):not([tabIndex="-1"]):not(:disabled)
`;
// Find first focusable element
const element = document.querySelector(focusableElementQuery);