mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-11 09:40:28 +03:00
Use aria-pressed to indicate attachment spoiler state
This commit is contained in:
parent
597c05b86d
commit
eca5c943bb
1 changed files with 2 additions and 1 deletions
|
|
@ -84,8 +84,9 @@ export function UploadCardRenderer({
|
||||||
variant="SurfaceVariant"
|
variant="SurfaceVariant"
|
||||||
radii="Pill"
|
radii="Pill"
|
||||||
size="300"
|
size="300"
|
||||||
|
aria-pressed={metadata.markedAsSpoiler}
|
||||||
>
|
>
|
||||||
<Icon src={metadata.markedAsSpoiler ? Icons.EyeBlind : Icons.Eye} size="200" />
|
<Icon src={Icons.EyeBlind} size="200" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue