Skip to content

Commit

Permalink
Merge pull request #464 from code-hike/next
Browse files Browse the repository at this point in the history
✨ Update website ✨
  • Loading branch information
pomber authored Oct 3, 2024
2 parents 2736785 + 58c487b commit 3a83b1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# codehike

## 1.0.2

### Patch Changes

- [#463](https://github.com/code-hike/codehike/pull/463) [`70f8de6`](https://github.com/code-hike/codehike/commit/70f8de66fd142c8692ed4d7e0d8b9293bd4f88bb) Thanks [@pomber](https://github.com/pomber)! - Fix color measurement in token-transitions

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/codehike/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codehike",
"version": "1.0.1",
"version": "1.0.2",
"description": "Build rich content websites with Markdown and React",
"keywords": [
"react",
Expand Down
1 change: 1 addition & 0 deletions packages/codehike/src/utils/token-transitions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ function toSnapshotElement(el: HTMLElement): SnapshotElement {
y += p.offsetTop
p = p.offsetParent
}
el?.getAnimations().forEach((a) => a.cancel())
const style = window.getComputedStyle(el)
const color = style.color
const content = el.textContent
Expand Down

0 comments on commit 3a83b1d

Please sign in to comment.