1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-12 02:07:26 +01:00

perf: avoid aria-hidden="false" (#1640)

This commit is contained in:
Nolan Lawson 2019-11-17 20:51:44 -05:00 committed by GitHub
parent 6211402afc
commit 4903f2effa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
title={pressable ? (pressed ? pressedLabel : label) : label}
aria-label={label}
aria-pressed={pressable ? !!pressed : undefined}
aria-hidden={ariaHidden}
aria-hidden={ariaHidden ? 'true' : undefined}
tabindex="{ariaHidden ? '-1' : '0'}"
class={computedClass}
{disabled}