Skip to content
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

chore: do arrow placing in code, not css #2667

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

Barsnes
Copy link
Member

@Barsnes Barsnes commented Oct 23, 2024

Steamlines so we only use css vars for placement, and all the arrow placement is now done in JS, not JS+CSS.

Was debating wether ${Math.round(...}px should be a util, but decided not to do it, since it is so far only used in these two components.

Copy link

changeset-bot bot commented Oct 23, 2024

⚠️ No Changeset found

Latest commit: 11cc014

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 23, 2024

Preview deployments for this pull request:

Storybook - 23. Oct 2024 - 14:52

Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 57.94% 3658 / 6313
🔵 Statements 57.94% 3658 / 6313
🔵 Functions 84% 168 / 200
🔵 Branches 75.14% 520 / 692
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/react/src/components/Popover/Popover.tsx 94.85% 71.87% 100% 94.85% 157, 195-196, 199-200, 213-214
packages/react/src/components/Tooltip/Tooltip.tsx 90.98% 64.28% 100% 90.98% 133-137, 187-188, 190-191, 193-194
Generated in workflow #528 for commit 11cc014 by the Vitest Coverage Report Action

@Barsnes Barsnes marked this pull request as ready for review October 23, 2024 12:51
Copy link
Contributor

@eirikbacker eirikbacker left a comment

Choose a reason for hiding this comment

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

👏

@Barsnes Barsnes merged commit 7494557 into next Oct 24, 2024
13 checks passed
@Barsnes Barsnes deleted the floating-arrow-placement branch October 24, 2024 06:27
mimarz pushed a commit that referenced this pull request Feb 21, 2025
Steamlines so we only use css vars for placement, and all the arrow
placement is now done in JS, not JS+CSS.

Was debating wether `${Math.round(...}px` should be a util, but decided
not to do it, since it is so far only used in these two components.
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.

None yet

2 participants