Skip to content

macos: check the tooltip shadow on its masked sublayer - #180

Merged
morajabi merged 1 commit into
mainfrom
claude/tooltip-shadow-test
Nov 28, 2026
Merged

morajabi merged 1 commit into
mainfrom
claude/tooltip-shadow-test

Conversation

@morajabi

Copy link
Copy Markdown
Contributor

`7e3a808c9` ("apple: brighten tooltip glass to match native") moved the tooltip shadow off the bubble's own layer onto a sublayer masked to outside the body. `InlineTooltipTests` "Pill content keeps full text, padding, and centered keycaps" still read the shadow from `bubble.layer`, so it failed on every run and kept "Swift packages (main)" red for main and every PR.

Test-only change: the test now finds the masked sublayer, checks the shadow values there, that the shadow layer covers the body, and that the even-odd mask excludes the body and keeps the outside.

`swift test --filter InlineTooltip` in `apple/InlineMacUI`: 17 tests passed.

🤖 Generated with Claude Code

The shadow moved off the bubble's layer onto a sublayer clipped to outside the
body, so the pill layout test failed on every run. It now reads the shadow there
and checks that the even-odd mask cuts the body out.
@morajabi
morajabi merged commit b63b069 into main Nov 28, 2026
31 of 36 checks passed
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.

1 participant