Skip to content

fix: Update tooltip to add spacing when element has focus#3707

Merged
alanbsmith merged 4 commits intoWorkday:supportfrom
mannycarrera4:mc-fix-tooltio-spacing
Feb 2, 2026
Merged

fix: Update tooltip to add spacing when element has focus#3707
alanbsmith merged 4 commits intoWorkday:supportfrom
mannycarrera4:mc-fix-tooltio-spacing

Conversation

@mannycarrera4
Copy link
Contributor

@mannycarrera4 mannycarrera4 commented Jan 22, 2026

Summary

Update logic in tooltip to check if the target has focus visible to add a little extra spacing

Release Category

Components

Release Note

Update logic in tooltip to check if the target has focus visible to add a little extra spacing


Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@cypress
Copy link

cypress bot commented Jan 22, 2026

Workday/canvas-kit    Run #10119

Run Properties:  status check passed Passed #10119  •  git commit 0d46ee7077 ℹ️: Merge e226d27389fd4f61752ee52f516731453eeaf2b9 into 5ee03f1a6d3f3e9d9f296163e73c...
Project Workday/canvas-kit
Branch Review mc-fix-tooltio-spacing
Run status status check passed Passed #10119
Run duration 02m 59s
Commit git commit 0d46ee7077 ℹ️: Merge e226d27389fd4f61752ee52f516731453eeaf2b9 into 5ee03f1a6d3f3e9d9f296163e73c...
Committer Manuel Carrera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 936
View all changes introduced in this branch ↗︎
UI Coverage  20.52%
  Untested elements 1443  
  Tested elements 370  
Accessibility  99.28%
  Failed rules  6 critical   5 serious   0 moderate   2 minor
  Failed elements 98  
@mannycarrera4 mannycarrera4 added the ready for review Code is ready for review label Jan 27, 2026
@mannycarrera4 mannycarrera4 moved this to 👀 In review in Canvas Kit Jan 27, 2026
@mannycarrera4 mannycarrera4 marked this pull request as ready for review January 29, 2026 20:49
padding: calc.subtract(system.space.x4, calc.divide(system.space.x1, 2)),
'&:before': {
margin: calc.add(system.space.x1, calc.divide(system.space.x1, 2)),
},
Copy link
Member

Choose a reason for hiding this comment

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

Comment: I never realized this was the logic to get the padding and margin. That's a very complex way to say:

padding: 14px
margin: 6px
Copy link
Member

Choose a reason for hiding this comment

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

This was the styling logic before, so I'm not asking for a change here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i agree...

@alanbsmith alanbsmith added approved Code has been reviewed and approved (ship it) and removed ready for review Code is ready for review labels Jan 30, 2026
@alanbsmith alanbsmith merged commit 2776ec7 into Workday:support Feb 2, 2026
25 of 26 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Canvas Kit Feb 2, 2026
alanbsmith pushed a commit that referenced this pull request Feb 19, 2026
Remove extra ref adding on Tooltip.  This allows correct ref forwarding for Popups.

[category:Components]

Release Note:
This [change](#3707) added an extra ref that overrides the popupStack.ref which breaks consumers passing in their own ref. Removing this should fix the issue.

Co-authored-by: manuel.carrera <manuel.carrera@workday.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Code has been reviewed and approved (ship it) automerge

2 participants