Card: Say 'Less' (to match '-') instead of 'More' when expanded

This commit is contained in:
infiinte-persistence 2020-10-02 12:31:54 +08:00 committed by Sean Yesmunt
parent 590feab1d1
commit 4053a920d9

View file

@ -71,7 +71,7 @@ export default function Card(props: Props) {
<Button
button="alt"
aria-expanded={expanded}
aria-label={__('More')}
aria-label={expanded ? __('Less') : __('More')}
icon={expanded ? ICONS.SUBTRACT : ICONS.ADD}
onClick={() => setExpanded(!expanded)}
/>