Skip to content

Commit

Permalink
add title attr
Browse files Browse the repository at this point in the history
  • Loading branch information
unsignd committed Aug 13, 2024
1 parent 83ac6a4 commit da728c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,10 @@ export function Header() {
/>
</ContentGroup>
<ContentGroup>
<IconButton onClick={() => navigate('/submission')}>
<IconButton
title="View Submission list"
onClick={() => navigate('/submission')}
>
<ArchiveSVG />
</IconButton>
<Button $border onClick={() => setIsActive(true)}>
Expand Down
1 change: 1 addition & 0 deletions src/components/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export function Item({
</ItemTextGroup>
<ItemButtonGroup>
<ItemButton
title="Copy this GIF's name to Clipboard"
onClick={() => {
if (progress === 0) {
navigator.clipboard.writeText(text);
Expand Down
1 change: 1 addition & 0 deletions src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ export function Modal() {
<Header>
<Heading>Contribute a GIF</Heading>
<CancelButton
title="Close modal"
onClick={(event) => {
event.preventDefault();

Expand Down
3 changes: 2 additions & 1 deletion src/components/SubmissionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ export function SubmissionItem({
/>
<ItemBottomGroup>
<ItemTextGroup>
<ItemText>{text.toLowerCase()}</ItemText>
<ItemText title={text.toLowerCase()}>{text.toLowerCase()}</ItemText>
</ItemTextGroup>
<ItemButtonGroup>
<ItemButton
title={upvoted ? 'Downvote this GIF' : 'Upvote this GIF'}
$isUpvoted={upvoted}
onClick={() => {
if (isClicked) return;
Expand Down

0 comments on commit da728c1

Please sign in to comment.