phoneTapTargets: pin top, left and transform of the hit-area box
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 4m32s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 4m32s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0e3115809e
commit
bd2d980023
1 changed files with 4 additions and 0 deletions
|
|
@ -127,6 +127,10 @@ describe('phone icon-button hit areas', () => {
|
|||
expect(phone.map((m) => m[1])).toEqual([PHONE]);
|
||||
expect(css).toMatch(/::after \{[^}]*width: max\(100%, 44px\);[^}]*height: max\(100%, 44px\);/);
|
||||
expect(css).toMatch(/::after \{[^}]*position: absolute;/);
|
||||
// centred on the button: top and left at half, pulled back by half its own size
|
||||
expect(css).toMatch(/::after \{[^}]*top: 50%;/);
|
||||
expect(css).toMatch(/::after \{[^}]*left: 50%;/);
|
||||
expect(css).toMatch(/::after \{[^}]*transform: translate\(-50%, -50%\);/);
|
||||
expect(stripPhone(css).trim()).toBe('');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue