Skip to content

Latest commit

 

History

History
762 lines (538 loc) · 19.8 KB

CHANGELOG.md

File metadata and controls

762 lines (538 loc) · 19.8 KB

@leafygreen-ui/text-area

9.1.2

Patch Changes

  • 65c6f321d: LG-4507: bumps to v1.2.5 of @leafygreen-ui/form-field

9.1.1

Patch Changes

9.1.0

Minor Changes

  • 3b86b3bd: Allow type of ReactNode for errorMessage and successMessage props in NumberInput, TextArea, and TextInput

Patch Changes

9.0.0

Major Changes

  • cbfda91b: LG-4144

    1. FormField styling changes apply to TextArea. See style changes here

    2. A default errorMessage of 'This input needs your attention' will render below text area when state is invalid.

    3. A default successMessage of 'Success' will render when state is valid. successMessage prop accepts a custom string.

    4. Disabled TextArea component no longer renders the disabled attribute and instead relies on aria-disabled and readonly attributes.

    The last change is made to ensure that disabled components are still focusable to users using keyboard navigation.

    For more on aria-disabled see the documentation on MDN

    Migration guide

    Functionally, migration should be seamless, however there may be unit/integration/e2e tests that relied on this behavior.

    Jest/RTL

    Generally, only this repo should need to test that these components have a specific attribute. We recommend updating unit tests to check that some event was or was not called.

    However, there are cases where this may still need to be tested. In cases where a test checks expect(textArea).toBeDisabled(), you can replace and use test harnesses.

    Cypress

    Similar to unit tests, you should generally test functionality and not implementation details. However, to test this in Cypress replace any cy.get(textArea).should('be.disabled'); checks with cy.get(textArea).invoke('attr', 'aria-disabled').should('eq', 'true');

Patch Changes

8.2.1

Patch Changes

  • 8adadc89: Fixes a bug that prevented packages from rendering in a server-side environment
  • Updated dependencies [8adadc89]

8.2.0

Minor Changes

  • c3906f78: - Extends DarkModeProps from @leafygreen-ui/lib
    • Exports getTestUtils, a util to reliably interact with LG TextArea in a product test suite. For more details, check out the README LG-4035
    • Adds aria-invalid attribute on the textarea. This will be true if state === error.
    • Exports the constant, LGIDS_TEXT_AREA, which stores data-lgid values.

Patch Changes

8.1.3

Patch Changes

8.1.2

Patch Changes

8.1.1

Patch Changes

  • 54a1bfb8: Allow defaultValue to be used in TextArea

8.1.0

Minor Changes

  • 36a8ded2: description prop can now be a React.ReactNode rather than a string

Patch Changes

8.0.21

Patch Changes

  • 305e3cdf: aria-labelledby is now correctly passed to the textarea
  • Updated dependencies [75b8d963]

8.0.20

Patch Changes

8.0.19

Patch Changes

8.0.18

Patch Changes

  • Updated dependencies [a5770c15]
  • Updated dependencies [c89d17a4]

8.0.17

Patch Changes

8.0.16

Patch Changes

8.0.15

Patch Changes

8.0.14

Patch Changes

8.0.13

Patch Changes

8.0.12

Patch Changes

8.0.11

Patch Changes

8.0.10

Patch Changes

  • a3a52e131: Bumps to use new useIdAllocator hook
  • Updated dependencies [614f7617d]
  • Updated dependencies [a3a52e131]
  • Updated dependencies [614f7617d]

8.0.9

Patch Changes

  • 32b3d3146: Bumps to use new useIdAllocator hook
  • 73cbbd02c: Uses fontWeight token from @leafygreen-ui/tokens
  • Updated dependencies [73cbbd02c]
  • Updated dependencies [83fc5b31b]
  • Updated dependencies [9bcf8b925]
  • Updated dependencies [8ece56980]
  • Updated dependencies [32b3d3146]
  • Updated dependencies [73cbbd02c]

8.0.8

Patch Changes

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

8.0.7

Patch Changes

8.0.6

Patch Changes

8.0.5

Patch Changes

  • 509f1b1d9: Label, Description, and Error respect baseFontSize prop
  • fc7a1cadd: Storybook: Updates Basic story
  • Updated dependencies [ffb99f417]
  • Updated dependencies [bf2fedf6d]
  • Updated dependencies [b7a29ea38]

8.0.4

Patch Changes

8.0.3

Patch Changes

  • 53d77f55d: Uses Error component from Typography package to handle formatting errorMessage prop
  • Updated dependencies [405636249]
  • Updated dependencies [53d77f55d]

8.0.2

Patch Changes

  • a79ee7f5d: Remove optional from prop documentation, as the prop is not supported by the component
  • Updated dependencies [d8c589d35]
  • Updated dependencies [703db871f]

8.0.1

Patch Changes

  • a1d093f30: Resolves aria type issues
  • ae5421cf6: Updates components to use internal transition tokens
  • Updated dependencies [ae5421cf6]
  • Updated dependencies [4b4c2d27d]
  • Updated dependencies [6a266b813]
  • Updated dependencies [1a335d0b2]
  • Updated dependencies [ba97d1ef7]
  • Updated dependencies [ae5421cf6]

8.0.0

Patch Changes

7.0.1

Patch Changes

7.0.0

Patch Changes

6.2.1

Patch Changes

6.2.0

Minor Changes

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

Patch Changes

6.1.2

Patch Changes

6.1.1

Patch Changes

  • 3dbc73ba: Update darkMode background-color to match figma designs

6.1.0

Minor Changes

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

Patch Changes

6.0.2

Patch Changes

  • f4cacd36: Remove z-index from textarea
  • Updated dependencies [13a4adcc]

6.0.1

Patch Changes

6.0.0

Major Changes

  • f0a357e2: Updates TextArea for dark mode refresh. Remove InteractionRing.

Patch Changes

5.1.1

Patch Changes

5.1.0

Minor Changes

  • 671c110e: Updates TextArea font-size and line-height based on global baseFontSize setting in LeafygreenProvider. Adds an override baseFontSize prop to TextArea. Note: override prop will not affect Label or Description font sizes. (https://jira.mongodb.org/browse/PD-2018)

    Updates Dependency:

Patch Changes

5.0.2

Patch Changes

5.0.1

Patch Changes

  • Updated dependencies [233ac580]
  • Updated dependencies [ba4aab15]
  • Updated dependencies [ba4aab15]
  • Updated dependencies [2cf1bc4a]
  • Updated dependencies [679b6239]
  • Updated dependencies [f3aad7e2]

5.0.0

Major Changes

  • 8457f92: Updates Text Area to match new visual brand refresh

Patch Changes

4.1.1

Patch Changes

  • 548ca2c: Restores the ability to pass onBlur handlers while using the useValidation hook.

4.1.0

Minor Changes

  • d661688: Adds validation callback for TextArea and TextInput

Patch Changes

4.0.3

Patch Changes

  • fe542c15: Fixes a bug in TextInput & TextArea where the focus ring was not visible when using the mouse. Also adds functionality to InteractioRing to ignore keyboard context and use the default focus behavior.
  • Updated dependencies [f6e5655a]
  • Updated dependencies [f6e5655a]
  • Updated dependencies [fe542c15]
  • Updated dependencies [b8f03aa1]

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Major Changes

  • dbb07e8b: Textarea component now accepts forwarded refs

3.0.4

Patch Changes

3.0.3

Patch Changes

  • d6829357: Removes outline from focus state, in favor of allowing our InteractionRing component to handle displaying focus.

3.0.2

Patch Changes

  • 358a072e: Fixes visual regression where the border of inputs do not appear until text is entered
  • Updated dependencies [fc18e572]

3.0.1

Patch Changes

  • ee766843: Fixes bug where aria-labelledby prop was not appropriately applied to textarea element

3.0.0

Major Changes

  • 8b0ea602: Form-compatible components now display more visually consistent hover and focus states

Patch Changes

2.0.0

Major Changes

  • 69354cdd: className prop is now spread on container div rather than textarea element

Minor Changes

  • 627333c2: State is now a named export from the package

Patch Changes

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

1.0.1

Patch Changes

  • 374430ea: Updates string color value to reference the same color from uiColors palette
  • 9ee1d5fc: Updates @leafygreen-ui/lib dependency to the most recent major version
  • Updated dependencies [c9a0d89f]
  • Updated dependencies [9ee1d5fc]

1.0.0

Major Changes

  • 4ee17735: Initial release of TextArea component