-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: TeachingPopover arrow off by a pixel #31161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: TeachingPopover arrow off by a pixel #31161
Conversation
...t-teaching-popover/src/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.ts
Outdated
Show resolved
Hide resolved
|
Think you'll need to create a change file:
|
...t-teaching-popover/src/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.ts
Outdated
Show resolved
Hide resolved
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 630 | 667 | 5000 | |
| Button | mount | 295 | 303 | 5000 | |
| Field | mount | 1127 | 1111 | 5000 | |
| FluentProvider | mount | 697 | 718 | 5000 | |
| FluentProviderWithTheme | mount | 77 | 81 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 31 | 37 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 79 | 10 | |
| MakeStyles | mount | 856 | 863 | 50000 | |
| Persona | mount | 1803 | 1734 | 5000 | |
| SpinButton | mount | 1396 | 1388 | 5000 | |
| SwatchPicker | mount | 1534 | 1532 | 5000 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
...hing-popover/src/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.ts
Show resolved
Hide resolved
📊 Bundle size report
Unchanged fixtures
|
🕵 fluentuiv9 No visual regressions between this PR and main |
change/@fluentui-react-teaching-popover-b32cb5ff-1e29-4c94-bb2d-a5ad448d78f9.json
Outdated
Show resolved
Hide resolved
...hing-popover/src/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.ts
Show resolved
Hide resolved
Change TeachingPopoverSurface boxSizing to account for shadow borders to help fix arrow placement. Address PR feedback Address PR Feedback Change TeachingPopoverSurface boxSizing to account for shadow borders to help fix arrow placement
0045857 to
a5a52e0
Compare
Mitch-At-Work
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Let's put a slightly more descriptive changelog comment then good to go
Co-authored-by: Edward Wang <edwardwang@microsoft.com>

Previous Behavior
The arrow is off by 1px

New Behavior
The arrow is no longer off by 1px

Related Issue(s)
Previously the
...shorthands.borderWidth('0px'),was introduced here: #30270It was done so because the items within the TeachingPopoverSurface did not align:

By changing the

boxSizingfrom'border-box'to'content-box'open questions?