- e1955dd36: Fixes broken patch build
- Updated dependencies [e1955dd36]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 53c67fba6: LG-4650: migrates from
yarn
topnpm
- Updated dependencies [53c67fba6]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [274d7e1a7]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 07bab6308: LG-4507: fix
FormFieldInputContainer
autocomplete styling used inDateInputSegment
,TextArea
andTextInput
. A double-border issue occurs when the auto-completed input has focus or hover state applied
- c95b81376: LG-4409:
contentEnd
slot prop now passes thedisabled
prop into the cloned element
- 3273045c: Correctly sets the
readOnly
prop in theuseFormFieldProps
hook. Previously,readOnly
was only added to an input ifdisabled
was true. Now, passing thereadOnly
prop adds it to the resulting input. - Updated dependencies [ae44834e]
- @leafygreen-ui/[email protected]
- c86227a6: Updates Storybook argTypes for mongodb.design
- 0864a420: Cleans up style definitions
- Updated dependencies [3364b542]
- Updated dependencies [0864a420]
- Updated dependencies [0864a420]
- Updated dependencies [eeea253c]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
c406ab85: LG-2930
- Adds and exports
FormFieldFeedback
component - Adds and exports
DEFAULT_MESSAGES
constant - Updates
FormField
andFormFieldInputContainer
components to use tokens where possible - Refactors
FormField
to useFormFieldFeedback
- Adds and exports
- Updated dependencies [c406ab85]
- Updated dependencies [c406ab85]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [dfd6972c]
- @leafygreen-ui/[email protected]
-
27ad3121: LG-4143
Optional
successMessage
prop is rendered below input container when state is valid.The following changes are made to
inputProps
spread on the input component contained byFormFieldInputContainer
:-
aria-label
prop is only passed to the input component with anaria-label
attribute iflabel
prop andaria-labelledby
prop are undefined. If either is defined,aria-label
attribute on the input component will be undefined as per best practices from aria-label MDN docsaria-label
prop can only set thearia-label
attribute on the input if bothlabel
prop andaria-labelledby
prop are undefined👎 Does not use aria-label
prop👎 Does not use aria-label
prop👍 Does use aria-label
prop<TextInput label="Label" aria-label="Custom label" />
<TextInput aria-label="Custom label" aria-labelledby="other-custom-label-id" />
<TextInput aria-label="Custom label" />
-
disabled
prop is passed to the input component witharia-disabled
attribute -
aria-invalid
attribute will always be set on the input component if the parent form field is in an error state. A customaria-invalid
prop can be used to customize this logic
The following styling changes are made:
- updated left and right spacing of input container for
xsmall
,small
, andlarge
size variants - updated light mode placeholder text color
- moved success and error icon from inside the input to underneath the input, alongside the state feedback message
- refactored disabled styles although there should be no visual changes associated with this refactor
-
- c3906f78: - Adds
data-lgid
toError
andoptional
.- Removes
role="presentation"
fromCheckmark
andWarning
icons and replaces it witharia-hidden
. Thetitle
attribute is omitted when usingrole="presentation"
and we rely ontitle
to query the DOM for those icons. - Exports the constant,
LGIDS_FORM_FIELD
, which storesdata-lgid
values.
- Removes
- Updated dependencies [9402ba0e]
- Updated dependencies [9b71e34d]
- Updated dependencies [c3906f78]
- Updated dependencies [c3906f78]
- Updated dependencies [070736c4]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 15185af0: Imports Storybook utilities from
@lg-tools/storybook-utils
(previously imported from@leafygreen-ui/lib
) - 356a53fd: Update TS builds to use
[email protected]
- Updated dependencies [7a0ff1be]
- Updated dependencies [15185af0]
- Updated dependencies [356a53fd]
- Updated dependencies [66df9ab8]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 223666eb: Conditionally renders div wrapping
errorMessage
and label/description content, so that styles appear as-expected.
- Updated dependencies [74057388]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 5249bd3d: Changes the gap between icons from 8px to 4px for all sizes.
- 54eb3ce8: Replaces with updated tokens
- Updated dependencies [2bceccb1]
- Updated dependencies [2645cd50]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- ffd11f24: Adds
data-testid
to Label, Description & Error elements
- ffd11f24: Updates disabled icon colors
- Updated dependencies [9b7a8236]
- Updated dependencies [7f38e78a]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- d16fb891: Initial beta release of FormField
- Updated dependencies [dd4f3da8]
- Updated dependencies [90053e16]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]