Skip to content

Latest commit

 

History

History
977 lines (648 loc) · 23.3 KB

CHANGELOG.md

File metadata and controls

977 lines (648 loc) · 23.3 KB

@leafygreen-ui/typography

19.3.0

Minor Changes

  • 94b4e7fa1: Exports linkStyles and linkModeStyles.

Patch Changes

  • Updated dependencies [2f05b61ab]
  • Updated dependencies [eb80fd3cb]

19.2.1

Patch Changes

  • db2d1d12c: Updates the background color of InlineCode component in dark mode from transparent to gray.dark4
  • Updated dependencies [cfa830701]

19.2.0

Minor Changes

  • 4fb369df7: Links only display focus state on focus-visible not default focus

Patch Changes

19.1.2

Patch Changes

  • 5d44c6b16: Updates line-height of H1 component from 62 to 64px to align better with our grid
  • Updated dependencies [df0d6faee]

19.1.1

Patch Changes

  • 0864a420: Cleans up style definitions
  • Updated dependencies [3364b542]
  • Updated dependencies [0864a420]
  • Updated dependencies [eeea253c]

19.1.0

Minor Changes

  • c406ab85: LG-2930

    • Updates typography components to use tokens where possible

Patch Changes

19.0.0

Major Changes

  • dfd6972c: - Fixes the Link component so that:
    • links are inline with the text preceding it
    • The Arrow Icon is inline with the last line of text. Previously it rendered in a column next to the text because of display: inline-flex
    • Adds generated stories for each Typography component

18.4.0

Minor Changes

  • c3906f78: - Exports the constant, LGIDS_TYPOGRAPHY, which stores data-lgid values.
    • Extends LgIdProps on CommonTypographyProps.
    • Adds the data-lgid attribute to Label and Description

Patch Changes

18.3.0

Minor Changes

  • 7a0ff1be: LG-4126

    Styling changes are made to ensure consistent implementation of disabled state styles.

Patch Changes

18.2.3

Patch Changes

18.2.2

Patch Changes

  • 58f4a4c5: Updates how link underlines are styled, such that the text-decoration wraps when links break on new lines
  • Updated dependencies [5ee54143]
  • Updated dependencies [e487fb24]

18.2.1

Patch Changes

18.2.0

Minor Changes

  • 58e86c60: - Adds BackLink component. This component renders a persistent back arrow and is intended for internal linking only.
    • Correctly responds to baseFontSize prop.

18.1.0

Minor Changes

  • ffd11f24: Allows Link component to accept a ref

Patch Changes

18.0.1

Patch Changes

  • e3f4d9ce: Improves documentation of Label component
  • Updated dependencies [c41752d2]
  • Updated dependencies [89332190]

18.0.0

Major Changes

  • 90053e16: Allows Link component to accept a ref

Patch Changes

17.0.2

Patch Changes

  • 324d9730: Updates H1 and H2 components in dark mode. Previously, their default color was 'green.light1' in dark mode, and now the default is 'gray.light2'

17.0.1

Patch Changes

17.0.0

Major Changes

  • a5770c15: Link now inherits font size and line height from the parent's CSS
  • c89d17a4: Updates Error component to read from TypographyProvider to set font size

16.5.5

Patch Changes

16.5.4

Patch Changes

16.5.3

Patch Changes

16.5.2

Patch Changes

16.5.1

Patch Changes

  • 76161cf0: Updates stories for Chromatic testing
  • Updated dependencies [76161cf0]
  • Updated dependencies [76161cf0]
  • Updated dependencies [95f5107a]
  • Updated dependencies [76161cf0]
  • Updated dependencies [76161cf0]

16.5.0

Minor Changes

  • 75099c60b: types LinkProps and InlineCodeProps accept a generic

Patch Changes

16.4.1

Patch Changes

  • 6a3f03fd2: Exported typography interfaces now extend PolymorphicProps

16.4.0

Minor Changes

  • 9bcf8b925: Exports OverlineProps and SubtitleProps

Patch Changes

  • 73cbbd02c: Uses fontWeight token from @leafygreen-ui/tokens
  • Updated dependencies [73cbbd02c]
  • Updated dependencies [83fc5b31b]
  • Updated dependencies [8ece56980]

16.3.0

Minor Changes

  • 07db42330: Exports typography component types

Patch Changes

  • 55d33e435: Update to BaseFontSize prop control for .design live example
  • cf00160ec: Updates TSDocs
  • Updated dependencies [55d33e435]
  • Updated dependencies [55d33e435]
  • Updated dependencies [cf00160ec]
  • Updated dependencies [111b680c5]
  • Updated dependencies [77320a6b8]

16.2.1

Patch Changes

16.2.0

Minor Changes

  • ece595acd: InlineCode component now supports "as" prop
  • 9858ab8c5: Overwrites default text-decoration property on Link component

Patch Changes

16.1.0

Minor Changes

  • eb0cc4498: No longer filters out props that are passed to Link component

Patch Changes

16.0.1

Patch Changes

  • bf2fedf6d: Version bumps lib
  • b7a29ea38: Removes "as" prop from HTML in H1 and H2 components.
  • Updated dependencies [bf2fedf6d]

16.0.0

Major Changes

  • 866144167: Uses Polymorphic instead of Box to support as prop. Adds support for as prop to Label component.

Patch Changes

15.3.0

Minor Changes

  • 53d77f55d: Introduces Error component to Typography package

15.2.1

Patch Changes

  • d8c589d35: Updates Storybook example DOM structure (removes 'invalid nesting' error) & uses provider for darkMode on Typography story
  • Updated dependencies [703db871f]

15.2.0

Minor Changes

  • a0d6638c4: Allows consuming applications to override baseFontSize as inherited from LeafyGreen Provider

Patch Changes

  • Updated dependencies [95bd93ef9]
  • Updated dependencies [3bb4b7506]

15.1.1

Patch Changes

  • b7f7a4c95: Updates package dependencies & devDependencies, and ensures each package is appropriately listed. Ensures tsconfig has no circular dependencies
  • Updated dependencies [b7f7a4c95]

15.1.0

Minor Changes

  • 6a266b813: Adds internal StaticWidthText component to prevent layout shift on font-weight change

Patch Changes

  • ba97d1ef7: Refactors component to follow new directory file structure
  • ae5421cf6: Updates components to use internal transition tokens
  • Updated dependencies [ae5421cf6]
  • Updated dependencies [4b4c2d27d]
  • Updated dependencies [1a335d0b2]

15.0.0

Minor Changes

  • 07b3c797: Enables passing a ref to InlineCode

Patch Changes

  • 07b3c797: Sets InlineCode default display property to inline
  • Updated dependencies [b9b09a86]

14.0.1

Patch Changes

14.0.0

Patch Changes

  • Updated dependencies [e399f1b9]
  • Updated dependencies [e399f1b9]

13.2.1

Patch Changes

13.2.0

Minor Changes

  • 3690df49: Updates TypeScript annotations, type structures and export format of some components

Patch Changes

13.1.2

Patch Changes

13.1.1

Patch Changes

  • 5aba12f1: Export and combine Label and Description styles.

13.1.0

Minor Changes

  • 65c86281: Consuming darkMode from the LeafyGreenProvider if the darkMode prop is not set

13.0.1

Patch Changes

  • 13a4adcc: Style updates to the Disclaimer component

13.0.0

Patch Changes

12.0.0

Major Changes

  • f0a357e2: Updates Body, Disclaimer, H1, H2, H3, InlineCode, InlineKeyCode, Link, Overline, and Subtitle for dark mode refresh.

11.0.2

Patch Changes

  • 96d1ff9c: Updates to propTypes, TSDocs, and Storybook controls
  • Updated dependencies [6a89bc29]
  • Updated dependencies [fd2f6de0]
  • Updated dependencies [96d1ff9c]
  • Updated dependencies [422dbfcd]
  • Updated dependencies [9ff90d4b]

11.0.1

Patch Changes

  • 909209c4: Fixes useUpdatedBaseFontSize override prop to accept the deprecated value 14

11.0.0

Major Changes

Patch Changes

10.0.0

Major Changes

  • ba4aab15: Updates Label and Description for Dark Mode Refresh

    Exports a temporary useUpdatedBaseFontSize hook to convert the values returned from useBaseFontSize to the new tokens

Minor Changes

  • f3aad7e2: Adds an optional override parameter to useUpdatedBaseFontSize. If the containing component accepts a baseFontSize prop, use this parameter to respect that prop

Patch Changes

  • 679b6239: Updating h3 font-weight from 500 to 600
  • Updated dependencies [233ac580]
  • Updated dependencies [ba4aab15]
  • Updated dependencies [2cf1bc4a]

9.1.1

Patch Changes

  • 614be76: Reduces outline width for InlineCode focus state
  • Updated dependencies [614be76]

9.1.0

Minor Changes

  • 1067fe9: Body typography component now uses the Box component, allowing the use of the as prop

9.0.0

Major Changes

  • 8457f92: - Adds "Euclid Circular A" and "MongoDB Value Serif" to tokens.fontFamilies
    • Updates Light mode typography according to visual brand refresh

Patch Changes

8.1.0

Minor Changes

  • da40935b: Updates appearance of the InlineCode component, and adds dark mode support.

8.0.4

Patch Changes

8.0.3

Patch Changes

  • d82eb152: Fixes Link component to support relative links. Links with href strings not beginning with http:// or https:// will behave the same as a native anchor tag

8.0.2

Patch Changes

8.0.1

Patch Changes

8.0.0

Patch Changes

7.6.0

Minor Changes

  • 02417199: Updates line-height for H3 component from 28px to 32px.

Patch Changes

7.5.0

Minor Changes

  • ec27f36e: - Improves accessibility of link component when rendering an icon.
    • Renders arrow at 12px instead of 10px to account for the reduced height of the glyph.

Patch Changes

7.4.0

Minor Changes

  • 1a42c662: Adds value to rel prop in Link component when href is external

Patch Changes

7.3.2

Patch Changes

  • f805b772: Support updated glyph
  • Updated dependencies [f805b772]

7.3.1

Patch Changes

7.3.0

Minor Changes

  • fc18e572: H1, H2, H3 and Subtitle components now accept an as prop, such that we can keep styles consistent via Component, but the actual heading level that should be rendered can change based on context. This was done to support making MongoDB an accessible platform, as headings should only decrease by one level (i.e. from <h1> to <h2>) but the styles don't always need to appear as such.

7.2.0

Minor Changes

  • 8b0ea602: - Label component now supports a disabled prop

7.1.1

Patch Changes

  • ee7923d3: Changes how we extend the types of HTMLElements, and standardizes how we document this across readmes
  • Updated dependencies [ee7923d3]
  • Updated dependencies [7b71da8f]

7.1.0

Minor Changes

  • fe861d52: Adds Label and Description components
  • aab4e65b: Rest props are now forwarded for InlineDefinition components when not rendered as a link

Patch Changes

7.0.0

Major Changes

  • ac0f3ff1: Visual updates to focus and hover states of component. The HTML structure has been returned to that of v4.* (the previous change in v5 was not reflected in the README). Styles provided through className prop may need to be updated to accordingly.

Patch Changes

6.0.1

Patch Changes

6.0.0

Major Changes

  • 0267bfd2: The underlying structure of distributed module definition files have changed and now have official support for ES modules. Module definition files are now generated using Rollup instead of Webpack. This should not affect functionality, but some thorough testing and caution should be exercised when upgrading.

Patch Changes

5.0.0

Major Changes

  • 001a277f: Body component now renders as a div instead of p element.

Minor Changes

  • d0dac1a0: Updates InlineCode component to match design spec. InlineCode components may now also be links.

Patch Changes

4.3.0

Minor Changes

  • eda10121: Adds H3 and InlineKeyCode components Updates color of typography elements from uiColors.gray.dark2 to uiColors.gray.dark3

Patch Changes

4.2.2

Patch Changes

  • f792966: Uses Tokens package to define font-family for InlineCode component
  • Updated dependencies [f792966]

4.2.1

Patch Changes

4.2.0

Minor Changes

  • 458f0c3: Ensures that rest props are spread to every component in Typography package

Patch Changes

4.1.1

Patch Changes

4.1.0

Minor Changes

  • 4873650: Adds Link component to typography package

Patch Changes

4.0.0

Major Changes

  • 1d24966: Makes @leafygreen-ui/leafygreen-provider a peer dependency to ensure that components use hooks from the same version of the provider as what's installed.

3.0.0

Major Changes

  • eba8391: Renames component prop to as

Patch Changes

2.0.0

Major Changes

  • 6d1de4a: Removes display:inline-block from Body and Small components.

1.0.1

Patch Changes

  • 365412e: Adds lib as a dependency rather than a devDep

1.0.0

Major Changes

  • 94ed125: Initial implementation of Typography component

Patch Changes