Skip to content

Conversation

@aKn1ghtOut
Copy link
Contributor

Checklist

  • I have read the Contributing Guide
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Proposed changes (including videos or screenshots)

Added tooltips to "Expand" and "Follow Message"/"Unfollow Message" in ThreadView for coherency.

Issue(s)

Closes #20455

Steps to test or reproduce

  1. Open any thread
  2. Hover over top-right buttons and wait for tooltip.

Further comments

Comment on lines 72 to 74
{hasExpand && <VerticalBar.Action title={t('Expand')} aria-label={expandLabel} name={expandIcon} onClick={handleExpandActionClick} />}
<VerticalBar.Actions>
<VerticalBar.Action aria-label={followLabel} name={followIcon} onClick={handleFollowActionClick} />
<VerticalBar.Action title={t(following ? 'Unfollow_message' : 'Follow_message')} aria-label={followLabel} name={followIcon} onClick={handleFollowActionClick} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use the value applied on the aria-label, and since you are using title, no need to use aria please remove ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ggazzo Made the changes :)

@ggazzo ggazzo added this to the 3.12.0 milestone Feb 2, 2021
@ggazzo ggazzo merged commit 7765759 into RocketChat:develop Feb 11, 2021
@sampaiodiego sampaiodiego mentioned this pull request Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] No tooltips in ThreadView header for expand and follow/unfollow

2 participants