Skip to content

Commit

Permalink
Feature/54 57 (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: Francis Thibault <[email protected]>
  • Loading branch information
fraincs and Francis Thibault authored Sep 29, 2023
1 parent d18b0f6 commit b5956d0
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 48 deletions.
6 changes: 6 additions & 0 deletions .changeset/wise-apes-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hopper-ui/tokens": major
"docs": patch
---

Removed unnecessary line-height / fix rounding for some line height tokens
2 changes: 1 addition & 1 deletion apps/docs/components/ui/sectionPopover/sectionPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const SectionPopover = ({ links }: React.PropsWithoutRef<SectionPopoverProps>) =
<div className="hd-section-popover">
<Button className={cx("hd-section-popover__button", isOpen && "hd-section-popover__button--open")} onPress={togglePopover}>
On this page
<ChevronIcon className="hd-section-popover__button-icon"/>
<ChevronIcon className="hd-section-popover__button-icon" />
</Button>
<div className={cx("hd-section-popover__popover", isOpen && "hd-section-popover__popover--open")}>
<a className="hd-section-popover__top-section" href="#top" onClick={togglePopover}>Return to top</a>
Expand Down
10 changes: 3 additions & 7 deletions apps/docs/datas/tokens-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
},
{
"name": "hop-line-height-1-14",
"value": "1.14"
"value": "1.1428571"
},
{
"name": "hop-line-height-1-20",
Expand All @@ -665,15 +665,11 @@
},
{
"name": "hop-line-height-1-33",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-line-height-1-4285",
"value": "1.4285"
},
{
"name": "hop-line-height-1-4295",
"value": "1.4295"
"value": "1.4285714"
},
{
"name": "hop-line-height-1-50",
Expand Down
52 changes: 24 additions & 28 deletions apps/docs/datas/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
},
{
"name": "hop-line-height-1-14",
"value": "1.14"
"value": "1.1428571"
},
{
"name": "hop-line-height-1-20",
Expand All @@ -665,15 +665,11 @@
},
{
"name": "hop-line-height-1-33",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-line-height-1-4285",
"value": "1.4285"
},
{
"name": "hop-line-height-1-4295",
"value": "1.4295"
"value": "1.4285714"
},
{
"name": "hop-line-height-1-50",
Expand Down Expand Up @@ -1989,19 +1985,19 @@
"lineHeight": [
{
"name": "hop-heading-3xl-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-heading-2xl-line-height",
"value": "1.25"
},
{
"name": "hop-heading-xl-line-height",
"value": "1.14"
"value": "1.1428571"
},
{
"name": "hop-heading-lg-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-heading-md-line-height",
Expand All @@ -2021,35 +2017,35 @@
},
{
"name": "hop-overline-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-2xl-line-height",
"value": "1.125"
},
{
"name": "hop-body-xl-line-height",
"value": "1.14"
"value": "1.1428571"
},
{
"name": "hop-body-lg-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-lg-medium-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-lg-semibold-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-lg-bold-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-lg-underline-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-md-line-height",
Expand All @@ -2073,51 +2069,51 @@
},
{
"name": "hop-body-sm-line-height",
"value": "1.4285"
"value": "1.4285714"
},
{
"name": "hop-body-sm-medium-line-height",
"value": "1.4295"
"value": "1.4285714"
},
{
"name": "hop-body-sm-semibold-line-height",
"value": "1.4295"
"value": "1.4285714"
},
{
"name": "hop-body-sm-bold-line-height",
"value": "1.4295"
"value": "1.4285714"
},
{
"name": "hop-body-sm-underline-line-height",
"value": "1.4295"
"value": "1.4285714"
},
{
"name": "hop-body-xs-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-xs-medium-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-xs-semibold-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-xs-bold-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-body-xs-underline-line-height",
"value": "1.33"
"value": "1.3333333"
},
{
"name": "hop-accent-lg-line-height",
"value": "1.125"
},
{
"name": "hop-accent-sm-line-height",
"value": "1.33"
"value": "1.3333333"
}
],
"borderRadius": [
Expand Down
10 changes: 3 additions & 7 deletions packages/tokens/src/tokens/core/fonts.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
"1-14": {
"$type": "lineHeight",
"$value": "1.14"
"$value": "1.1428571"
},
"1-20": {
"$type": "lineHeight",
Expand All @@ -106,15 +106,11 @@
},
"1-33": {
"$type": "lineHeight",
"$value": "1.33"
"$value": "1.3333333"
},
"1-4285": {
"$type": "lineHeight",
"$value": "1.4285"
},
"1-4295": {
"$type": "lineHeight",
"$value": "1.4295"
"$value": "1.4285714"
},
"1-50": {
"$type": "lineHeight",
Expand Down
10 changes: 5 additions & 5 deletions packages/tokens/src/tokens/semantic/light/fonts.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
},
"line-height": {
"$type": "lineHeight",
"$value": "{line-height.1-4295}"
"$value": "{line-height.1-4285}"
}
},
"semibold": {
Expand All @@ -430,7 +430,7 @@
},
"line-height": {
"$type": "lineHeight",
"$value": "{line-height.1-4295}"
"$value": "{line-height.1-4285}"
}
},
"bold": {
Expand All @@ -448,7 +448,7 @@
},
"line-height": {
"$type": "lineHeight",
"$value": "{line-height.1-4295}"
"$value": "{line-height.1-4285}"
}
},
"underline": {
Expand All @@ -465,8 +465,8 @@
"$value": "{font.weight.505}"
},
"line-height": {
"$type": "lineHeight",
"$value": "{line-height.1-4295}"
"$type": "lineHeight",
"$value": "{line-height.1-4285}"
}
}
},
Expand Down

0 comments on commit b5956d0

Please sign in to comment.