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

fix: add start end suffix for callout and add eslint-config #17

Merged
merged 6 commits into from
Jun 12, 2024

Conversation

felicia-haggqvist
Copy link
Contributor

@felicia-haggqvist felicia-haggqvist commented Jun 11, 2024

Fixes Jira WARP-527

  • Add @warp-ds/eslint-config as a devDependency

  • Add linting scripts to package.json

  • Lint all code using pnpm lint

  • Add github workflow for linting PR.

  • Remove middlePosition, isDirectionVertical and computeCalloutArrow() and compute callout's arrow position in the computePosition() instead.

  • Add a check to only apply left and top style to attentionEl when isCallout is false, since we only want to use Floating-ui's computePosition() to calculate the callout's arrow position and not the attention element's position, due to that targetEl can be undefined when isCallout is true.

How to test:

@felicia-haggqvist felicia-haggqvist requested a review from a team June 11, 2024 09:01
@felicia-haggqvist felicia-haggqvist self-assigned this Jun 11, 2024
@felicia-haggqvist felicia-haggqvist changed the title fix: add start end placement support callout and add eslint-config fix: add start end suffix for callout and add eslint-config Jun 11, 2024
@felicia-haggqvist felicia-haggqvist merged commit 605fbc6 into main Jun 12, 2024
10 checks passed
@felicia-haggqvist felicia-haggqvist deleted the fix/add-start-end-placement-support-callout branch June 12, 2024 09:11
github-actions bot pushed a commit that referenced this pull request Jun 12, 2024
## [1.1.2](v1.1.1...v1.1.2) (2024-06-12)

### Bug Fixes

* add start end suffix for callout and add eslint-config ([#17](#17)) ([605fbc6](605fbc6))
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.

2 participants