Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
86bb65a
Initial plan
Copilot Apr 6, 2026
ab646bb
fix: clip arrow to triangle to prevent border corners overlapping con…
Copilot Apr 6, 2026
bc8a20c
chore: remove package-lock.json and restore yarn.lock
Copilot Apr 6, 2026
1cf6434
fix: reference for npm tokens
danielbarion Apr 6, 2026
33e71f4
Merge branch 'master' into copilot/fix-border-overlap-issue
danielbarion Apr 6, 2026
b75b7e6
fix: permissions in the workflow
danielbarion Apr 6, 2026
04f5151
fix: use beta-release directly from file
danielbarion Apr 6, 2026
6dc41b1
fix: update to use it from pull-request again
danielbarion Apr 6, 2026
a629566
fix: update package.json and raise node.js version in the workflow
danielbarion Apr 6, 2026
c9acbf0
fix: back to node v20.x on beta-release workflow
danielbarion Apr 6, 2026
3e26c8e
fix: update pull-request based on the npm docs
danielbarion Apr 6, 2026
038fa3a
fix: update pull-request based on the npm docs
danielbarion Apr 6, 2026
fdf3b6d
fix: update pull-request based on the npm docs
danielbarion Apr 6, 2026
f819fd0
fix: update pull-request based on the npm docs
danielbarion Apr 6, 2026
e83ea68
fix: upgrade node in the workflow to run the publish from it
danielbarion Apr 7, 2026
ebe508f
fix: update repository url in the package.json
danielbarion Apr 7, 2026
34e6fe3
fix: add debug logs as artifact so we can debug it
danielbarion Apr 7, 2026
515c241
fix: upgrade node in the workflow to run the publish from it
danielbarion Apr 7, 2026
d6e5de7
fix: add more permissions to the comment script
danielbarion Apr 7, 2026
015b900
chore: remove debug log from beta release workflow
danielbarion Apr 7, 2026
296223f
fix: arrow styles when bigger border and bigger size
danielbarion Apr 7, 2026
91f3967
fix: arrow border behavior and backface
danielbarion Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/beta-release.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Beta Release

on:
workflow_call:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
beta_release:
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
concurrency:
group: beta-release-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '24.14.0'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

Expand All @@ -36,7 +43,14 @@ jobs:
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}

- name: Release a new beta version
run: npm publish --tag beta --provenance --access public
run: npm publish --tag beta --access public

- name: Upload npm debug logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: npm-debug-logs
path: /home/runner/.npm/_logs

- uses: actions/github-script@v6
with:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/bundlesize.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ jobs:
if: 'github.event.pull_request.draft == false'
uses: ./.github/workflows/lint.yaml

bundlesize:
if: 'github.event.pull_request.draft == false'
uses: ./.github/workflows/bundlesize.yaml

beta_release:
uses: ./.github/workflows/beta-release.yaml
# allow the children job to have access to the secrets of the repository
secrets: inherit

fail_if_pull_request_is_draft:
if: github.event.pull_request.draft == true
runs-on: ubuntu-18.04
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
"stylelint": "stylelint \"src/**/*.css\"",
"prettier": "prettier --config ./.prettierrc.json --write \"src/**/*{.js,.jsx,.ts,.tsx,.css}\"",
"prepare": "husky install",
"bundlesize": "bundlesize",
"esbuild": "esbuild",
"test": "jest",
"postbuild": "npm run types && npm run bundlesize",
"prepublishOnly": "npm run build"
},
"types": "dist/react-tooltip.d.ts",
"license": "MIT",
"private": false,
"author": "ReactTooltip",
"repository": "https://github.com/ReactTooltip/react-tooltip",
"repository": {
"type": "git",
"url": "https://github.com/ReactTooltip/react-tooltip"
},
"keywords": [
"react",
"react-component",
Expand Down Expand Up @@ -64,7 +65,6 @@
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.54.0",
"@typescript-eslint/parser": "5.54.0",
"bundlesize": "^0.18.1",
"css-loader": "6.7.3",
"esbuild": "0.17.11",
"esbuild-css-modules-plugin": "^2.7.1",
Expand Down
10 changes: 9 additions & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,15 @@ const Tooltip = ({
}}
ref={tooltipRef}
>
{actualContent}
<WrapperElement
className={classNames(
'react-tooltip-content-wrapper',
coreStyles['content'],
styles['content'],
)}
>
{actualContent}
</WrapperElement>
<WrapperElement
className={classNames(
'react-tooltip-arrow',
Expand Down
7 changes: 7 additions & 0 deletions src/components/Tooltip/core-styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
position: absolute;
background: inherit;
z-index: -1;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}

.content {
position: relative;
z-index: 1;
}

.noArrow {
Expand Down
7 changes: 6 additions & 1 deletion src/components/Tooltip/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
.tooltip {
padding: 8px 16px;
border-radius: 3px;
font-size: 90%;
width: max-content;
}

.content {
background: inherit;
border-radius: inherit;
padding: 8px 16px;
}

.arrow {
width: var(--rt-arrow-size);
height: var(--rt-arrow-size);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/compute-tooltip-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const computeTooltipPosition = async ({
right: '',
bottom: '',
...borderSide,
[staticSide]: `-${arrowSize / 2 + borderWidth}px`,
[staticSide]: `-${arrowSize / 2 + borderWidth - 1}px`,
}
/* c8 ignore end */

Expand Down
Loading
Loading