- 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]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 274d7e1a7: Removes prop-types from LeafyGreen UI
- a3d63cb95: Export prop types for components already wrapped in polymorphic types
- Updated dependencies [a3d63cb95]
- 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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
04bb887c0: LG-4121: Replaces
usePortal
prop withrenderMode
prop.renderMode="inline"
andrenderMode="portal"
are deprecated, and all popover elements should migrate to using the top layer. The old default wasusePortal=true
, and the new default isrenderMode="top-layer"
.See @leafygreen-ui/popover package 12.0.0 changelog for more info.
Additional changes include:
- Deprecates and removes
justify="fit"
. Instead, usejustify="middle"
Use popover-v12 codemod for migration assistance.
<Menu popoverZIndex={9999} usePortal={false} /> <Menu portalClassName="portal-class" usePortal />
<Menu popoverZIndex={9999} renderMode="inline" /> <Menu portalClassName="portal-class" renderMode="portal" />
- Deprecates and removes
- Updated dependencies [04bb887c0]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [117a463f8]
- @leafygreen-ui/[email protected]
- 08112c810: LG-4630: Apply highlight to first menu item only when opened with keyboard
- 5f10976d5: - Updates
useAvailableSpace
hook which fixes a dropdown height bug. LG-4601.
Note: This version has no updates. Pleas use version 25.1.3
.
- Updates
useAvailableSpace
hook which fixes a dropdown height bug. LG-4601
- af96e3967: LG-4422 Update chevron icon to properly indicate if interaction will expand or collapse and add animation
- Updated dependencies [e7bc12814]
- Updated dependencies [c1b8b633b]
- Updated dependencies [ecae9acc7]
- Updated dependencies [fe2483937]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 409377e19: Adds additional exports:
MenuDescendantsContext
- Used to register and consume Menu descendants
- This context value allows you to register and track custom menu items
- Context hooks
useMenuContext
,useMenuGroupContext
, &useSubMenuContext
, along with types typesMenuContextData
,MenuGroupContextData
, &SubMenuContextData
,- use these to read context data from custom menu item components
menuColor
: Custom color tokens used withinMenu
and related componentsMenuInteractionState
: Enumerates interaction states on a menu itemLGIDs
: Unique ids for menu elementsmenuItemClassName
: The unique class name for menu item componentssubMenuContainerClassName
&subMenuToggleClassName
- Unique classnames for submenu elements
- Updated dependencies [409377e19]
- @leafygreen-ui/[email protected]
- 4c04aa0ee: Update Menu to use latest Descendants API
- Updated dependencies [4c04aa0ee]
- Updated dependencies [66e5665e8]
- Updated dependencies [4c04aa0ee]
- Updated dependencies [4c04aa0ee]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- cfa830701: Internally refactors Menu to leverage
@leafygreen-ui/descendants
. This improvement will enable faster feature development and bug fixes in the future. - cfa830701: Implements
InputOption
withinMenuItem
.- Aligns spacing & colors with other dropdown menus.
- Also creates additional
MenuItem
generated stories
- cfa830701: - Updates the
FocusableMenuItem
component for new menu descendants pattern. By wrapping an input component inFocusableMenuItem
, it will be registered as a menu item descendant, and will be focusable using standard menu arrow key interactions.- Note: the single child of
FocusableMenuItem
must itself be focusable. Wrapping a focusable element (e.g.input
in adiv
) will not enable the menu descendant functionality.
- Note: the single child of
-
cfa830701: Adds
title
andglyph
props toMenuGroup
. Providing a title toMenuGroup
will visually indent the childMenuItem
components, appearing nested within the group. -
cfa830701: ## Features
- Clicking a submenu item that does not have a click handler or
href
will toggle the submenu - When focused on a submenu item, pressing the left/right arrow keys will close/open the menu (respectively)
- Updates Submenu component to use
InputOption
- Moves the submenu toggle button to be a sibling of the
InputOption
- this avoids any potential nesting of
button
elements
- this avoids any potential nesting of
- Clicking a submenu item that does not have a click handler or
- cfa830701: Ensures
SubMenu
does not toggle open/closed when disabled - cfa830701: Fixes a bug where click handlers on MenuItem or SubMenu would still fire when disabled
- Updated dependencies [cfa830701]
- Updated dependencies [cfa830701]
- Updated dependencies [cfa830701]
- Updated dependencies [cfa830701]
- Updated dependencies [db2d1d12c]
- Updated dependencies [cfa830701]
- Updated dependencies [cfa830701]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [7a901b954]
- Updated dependencies [7a901b954]
- Updated dependencies [342ab81b0]
- Updated dependencies [29d50edaa]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
02e1d77e: Expose
portalRef
in components that usePopover
:Combobox
DatePicker
GuideCue
Menu
NumberInput
Select
SplitButton
Tooltip
- Updated dependencies [02e1d77e]
- Updated dependencies [7bc4fcde]
- Updated dependencies [7bc4fcde]
- Updated dependencies [961be3f9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 433616d4: Exports
MenuGroup
from package
- Updated dependencies [57dedc40]
- @leafygreen-ui/[email protected]
- 1d55530b: Removes the closing of
Menu
onMenuItem
click. This behavior was causing issues with clickable items inside ofMenuItem
. To control whenMenu
closes, useopen
andsetOpen
. LG-4130
- 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 [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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [74057388]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- e487fb24: Renames story files from
.story.tsx
to.stories.tsx
- Updated dependencies [8ad4fdbc]
- Updated dependencies [5ee54143]
- Updated dependencies [e487fb24]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 2724d6b7: - Updates dark mode
Menu
. PreviouslyMenu
had an inverted light theme in dark mode but nowMenu
will have a dark theme in dark mode. Light mode and dark mode will have different dark themes.- Adds a 1px border around the menu dropdown.
- 7c3e6d39: Adds
initialOpen
prop, which allows consuming applications to control the initial state of an uncontrolled implementation of the component.
- dd4f3da8: Adds tests for pressing enter/space on a menuItem
- Updated dependencies [dd4f3da8]
- Updated dependencies [784e9d8a]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- b15c4805: Adds
variant
prop to MenuItem component. The value can either be'default'
or'destructive'
- 3a9b274d: Handles keyboard event based on the event's
key
property rather than itskeyCode
property - Updated dependencies [3a9b274d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [3fe03b50]
- Updated dependencies [fd907503]
- Updated dependencies [c9f0055a]
- Updated dependencies [56459cde]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 4fcf2e94: Updates types with
React.PropsWithChildren
- 4fcf2e94: Bumps
react-transition-group
to^4.4.5
. - Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- c11bbc29: Fixes problem with ts-docs not being available in bundle.
- Updated dependencies [c11bbc29]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- c15ee2ac: Fixes missing documentation file
- Updated dependencies [f73807cf]
- Updated dependencies [31c09354]
- Updated dependencies [c15ee2ac]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 215268ff: Updates build tooling. No functional changes
- Updated dependencies [215268ff]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 735342e9: Reduce the number of re-renders and fixes a bug that prevented a previously opened menu from closing on the opening of another menu.
- 76161cf0: Updates stories for Chromatic testing
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- Updated dependencies [735342e9]
- Updated dependencies [95f5107a]
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 63b2deb0b: Upgrade button to v20.1.1
- Updated dependencies [63b2deb0b]
- @leafygreen-ui/[email protected]
- c0699a0df: Clicking on a MenuItem closes the Menu component
- 0cd471676: Refactor
Menu
to useforwardRef
.
- d2ce54e2f: Updates story files for Storybook 7.x
- 0cd471676: Adds
id
prop and addsaria-expanded
andaria-haspopup
internally. RemovesMenuItem.displayName
and passes the displayName as an argument toInferredPolymorphic
instead. - Updated dependencies [d2ce54e2f]
- Updated dependencies [d2ce54e2f]
- Updated dependencies [0cd471676]
- @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]
- bdc11b5be: When you press the
tab
key within a menu that is open, it will no longer cycle through the available options. Rather, the menu will close and the focus will shift to the trigger of the menu.
- f2ae45924: Fixes flakey menu tests
- 73cbbd02c: Uses fontWeight token from
@leafygreen-ui/tokens
- Updated dependencies [73cbbd02c]
- Updated dependencies [8ece56980]
- Updated dependencies [83fc5b31b]
- Updated dependencies [8ece56980]
- Updated dependencies [32b3d3146]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- cf00160ec: Updates TSDocs
- ce0fcb3f6: Excludes
children
from story controls - Updated dependencies [55d33e435]
- Updated dependencies [55d33e435]
- Updated dependencies [cf00160ec]
- Updated dependencies [ce0fcb3f6]
- Updated dependencies [111b680c5]
- Updated dependencies [77320a6b8]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8c0c2bdf9: Updates build script to include a transpiled copy of the story file in the bundle
- Updated dependencies [8c0c2bdf9]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- b9841decc: Ensures MenuItem and SubMenu components are rendered with proper HTML elements
- b9841decc: Improves prop types and polymorphic support
- Updated dependencies [5b036515e]
- Updated dependencies [b9841decc]
- Updated dependencies [26e341a0b]
- Updated dependencies [997121cc3]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 2f732ca50: Migrate component to use
Polymorphic
instead ofBox
internally. This should allow better support of thestyled
API. Additionally, this fixes a bug with theas
prop, which should now work as expected and allow consuming applications to choose what component MenuItem and SubMenu components are rendered as.
- bf2fedf6d: Version bumps lib
- Updated dependencies [ffb99f417]
- Updated dependencies [bf2fedf6d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- c82ed35d5: Removes
useUsingKeyboardContext
from component, in favor of&:focus-visible
- Updated dependencies [050f1f8a9]
- Updated dependencies [741cdd408]
- Updated dependencies [c82ed35d5]
- Updated dependencies [b24b21462]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 33a5dac82: Updates disabled and focus styles.
- b7f7a4c95: Updates package dependencies & devDependencies, and ensures each package is appropriately listed. Ensures
tsconfig
has no circular dependencies - Updated dependencies [b7f7a4c95]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 1a335d0b2: Migrate component internals to check for glyphs explicity, rather than for Icon components as well
- ae5421cf6: Updates components to use internal transition tokens
- Updated dependencies [ae5421cf6]
- Updated dependencies [4b4c2d27d]
- Updated dependencies [1a335d0b2]
- Updated dependencies [ae5421cf6]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [b9b09a86]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- f2d63a60: Removes leafygreen data attributes (prefixed with
data-leafygreen-ui-
), and replaces them with deterministic classNames (prefixed withlg-ui-
)
- Updated dependencies [2195359a]
- Updated dependencies [209f77ed]
- Updated dependencies [f2d63a60]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [e399f1b9]
- Updated dependencies [e399f1b9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 24683433: - Remove an implicit dependency on
@emotion/react
fixing an issue where LG packages would not build if@leafygreen/[email protected]
or greater was installed. - Updated dependencies [24683433]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 3690df49: Updates TypeScript annotations, type structures and export format of some components
- 3690df49: Updates Storybook configs
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [58a5a05e]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- a1202635: Adds a call to
event.nativeEvent.stopPropagation()
on trigger click, preventing the native event from propagating, while still allowing the React synthetic event to bubble. This ensures clicks on the trigger do not close the menu in hybrid/multi-framework apps
- 8d7534e9: Adds
tsdoc.json
to published package files - 5de9d6ad: Resolving unique key warning on trigger component
- Updated dependencies [7caa1c3e]
- Updated dependencies [1e708bd3]
- Updated dependencies [8d7534e9]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- cdbbe4a2: Fix background color appearing when clicking on a disabled menu item
- fdd1cbbf: Adds missing dependencies
- Updated dependencies [30e038a3]
- @leafygreen-ui/[email protected]
- 5aba12f1: - Update
Menu
for dark mode brand refresh.- Adds
darkMode
prop to determine whether or not the component will render in dark theme. - Adds vertical spacing to
MenuSeparator
. - Increase default
maxHeight
to 344px. - Fixing bug where passing color styles to
MenuItem
using theclassName
prop was being overwritten.
- Adds
- 5aba12f1: Prevents the page from scrolling on up/down arrow key press when the menu is open
- f9846f68: When a menu is closed with the
Escape
key, the trigger will regain focus
- c897e216: Removes flicker in the active wedge
- Updated dependencies [85d46871]
- Updated dependencies [99e20bb9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- fad2b287: Fixes a bug where occasionally the max menu height would be set to 0 if a ref was left unset
- 6792bc44: Adds a
maxHeight
prop. Menu will automatically restrict its height to the smallest ofmaxHeight
and the available vertical space (using the hookuseAvailableSpace
).
- 96d1ff9c: Updates to propTypes, TSDocs, and Storybook controls
- Updated dependencies [6a89bc29]
- Updated dependencies [fd2f6de0]
- Updated dependencies [6792bc44]
- Updated dependencies [96d1ff9c]
- Updated dependencies [422dbfcd]
- Updated dependencies [9ff90d4b]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- bc2558c5: Adding named exports for select components and types
- Updated dependencies [bc2558c5]
- @leafygreen-ui/[email protected]
- Updated dependencies [c48e943e]
- @leafygreen-ui/[email protected]
- ddd0f1ec: Adds
aria-current
attribute to active menu item - Updated dependencies [e13d2487]
- Updated dependencies [5f28fce1]
- Updated dependencies [c48e943e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 24d31147: Allows custom props to be passed to MenuItem components inside Menu/SubMenu
- Updated dependencies [233ac580]
- Updated dependencies [ba4aab15]
- Updated dependencies [2cf1bc4a]
- Updated dependencies [ef84b5fd]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- acd6919: Updates
MenuSeparator
to optionally accept aclassName
prop
- acd6919: Removes an undocumented change where both
href
anddescription
would be rendered if provided toMenuItem
. Now onlydescription
will be rendered. - acd6919: - Eliminates fuzzy text on hover in
menu
andtabs
- Updated dependencies [acd6919]
- Updated dependencies [acd6919]
- Updated dependencies [acd6919]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8457f92: Updates Menu in line with visual brand refresh. Note: menus are now dark with light text
- Updated dependencies [8457f92]
- @leafygreen-ui/[email protected]
- Updated dependencies [cb54eef]
- @leafygreen-ui/[email protected]
- Updated dependencies [f6e5655a]
- Updated dependencies [b8f03aa1]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8409a9ea: Styles text on the MenuItem container such that styles can be overwritten by consuming applications
- Updated dependencies [e1af3278]
- Updated dependencies [047c1930]
- Updated dependencies [047c1930]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 4b7b7322: Adds
role='presentation'
to glyphs rendered before menu items
- 5bb0e25f: CaretIcons no longer announced to scren readers, since they are not focusable
- a4d3f000: Updates icons in inactive menu and submenu items to
uiColors.gray.dark1
- 857a680a: Adds support for positioning popover elements relative to elements within a scroll container other than the window.
Adds support for setting z-index on popover elements with the
zIndex
prop.
- Updated dependencies [857a680a]
- Updated dependencies [857a680a]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [90321b36]
- Updated dependencies [ab581f34]
- Updated dependencies [90321b36]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 4b387979: Adds
role="none"
to li element inMenuItem
component
- f3523462: Implementation update that avoids some unnecessary rerenders
- ee7923d3: Changes how we extend the types of HTMLElements, and standardizes how we document this across readmes
- Updated dependencies [ee7923d3]
- Updated dependencies [627333c2]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- c18f16e6: Improves compatibility with React v17
- Updated dependencies [c18f16e6]
- Updated dependencies [c18f16e6]
- Updated dependencies [c9a0d89f]
- Updated dependencies [9ee1d5fc]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- f7b3d668: Fixes issue where scrollbar is always visible
- dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed
- Updated dependencies [dac3f38b]
- @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]
- 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.
- Updated dependencies [0267bfd2]
- @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]
- a18b4e1b: Menus are now scrollable when their contents exceed their size. Previously the excess content would be hidden.
- Updated dependencies [001a277f]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [6e210765]
- @leafygreen-ui/[email protected]
- 47846c77: Fixes unintentional exclusion of
ref
from TypeScript typing of props forButton
,SubMenu
, andMenuItem
components. - Updated dependencies [a84219f1]
- @leafygreen-ui/[email protected]
- 6b0d0a2: Removed an extraneous propType
- Updated dependencies [a14a079]
- Updated dependencies [290c9fc]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [ab4c074]
- @leafygreen-ui/[email protected]
- 691eb05: Better support for UMD
- Updated dependencies [691eb05]
- @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]
- Updated dependencies [fa55b3d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [2eba736]
- Updated dependencies [1aa26ee]
- Updated dependencies [d2136a0]
- Updated dependencies [a571361]
- Updated dependencies [d739511]
- @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]
- e8f5376: Ensures that only props that are of type
string
are recognized as being passed to thehref
prop. - Updated dependencies [e8f5376]
- Updated dependencies [4873650]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 083eec3: Remove usage of
Element
in Node target builds that was preventing rendering the component in SSR contexts. - Updated dependencies [083eec3]
- Updated dependencies [083eec3]
- Updated dependencies [27f8ea1]
- Updated dependencies [27f8ea1]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 0593116: Uses enhanced
ExtendableBox
type to set smarter defaultas
component inMenuItem
andSubMenu
- Updated dependencies [0593116]
- @leafygreen-ui/[email protected]
- 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.
- eba8391: Component now extends
Box
in order to enforce stronger typings - Updated dependencies [06fbf05]
- Updated dependencies [eba8391]
- Updated dependencies [eba8391]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 1d86d56: Imports Glyphs directly, rather than importing the entire Icon package, when Glyph components are used
- Updated dependencies [1d86d56]
- Updated dependencies [1d86d56]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [6fc022e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 05779a1: Upgrades
react-transition-group
to 4.4.1 which removes all ReactStrictMode
warnings, making these componentsStrictMode
safe. - Updated dependencies [2fc4ef9]
- Updated dependencies [05779a1]
- Updated dependencies [e857861]
- Updated dependencies [cf6167e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- a11b521: Fixes issue with SubMenu, such that open is now set by Menu when the Menu itself is open
- 2a03117: Upgrades @testing-library/react to v10 and revises test suites to conform with new standards
- Updated dependencies [2a03117]
- Updated dependencies [c812eb3]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 0391d01: Fixes style bug when MenuItem is focused and rendered as anchor tag
- Updated dependencies [2176b77]
- @leafygreen-ui/[email protected]
- 75c0693: Upgrades workspace dependencies
- Updated dependencies [75c0693]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [5aafd72]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 64c03e7: Fixes SubMenuIcon padding to account for change in size of xlarge glyphs
- Updated dependencies [bc47b13]
- Updated dependencies [1b298cc]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [4c268a5]
- Updated dependencies [94ed125]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- dd342f5: MenuItem component renders any ReactElement description, rather than only strings.
- Updated dependencies [e1568c6]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- cda96b2: Updates text color when MenuItem is focused
- 347bcf6: Fix typings in Menu component
- Updated dependencies [347bcf6]
- Updated dependencies [704e25c]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 786ccf1:
- Changes
glyph
prop fromstring
toReact.ReactElement
in SubMenu component - Adds
glyph
andsize
props to MenuItem component
- Changes
- 690888a: Adds
spacing
prop to Menu component
- Updated dependencies [ac5c473]
- @leafygreen-ui/[email protected]
- fabc1c9:
- MenuItems accept an
as
prop to determine what component to render as. - Introduces
SubMenu
components with stronger accessibility logic
- MenuItems accept an
- Updated dependencies [0a75bd6]
- Updated dependencies [fabc1c9]
- Updated dependencies [fabc1c9]
- Updated dependencies [232cf52]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 464c09d: Introduces SSR compatibility though a change to our build process and files
- 5c9202d: Introduces support for LeafyGreenProvider for improved focus state management
- 31f6bfd: Removes deprecated
title
prop from the Menu component propTypes - Updated dependencies [5c9202d]
- Updated dependencies [464c09d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8c2e838: Updates styles to fix bugs on Safari and Firefox
- ad74307: Changes default behavior in MenuItems with anchor tags, such that the default is to
target="\_self"
, and ensures ability of consumer to override the default - ff55bb5: Updates anchor styles to minimize overrides
- baf45f6: Allows target and rel props to be passed to MenuItem, when MenuItem is a link
- 2f9a300: Uses exported keyMap from lib
- 759523f: Adds border-box property to MenuItems and update documentation
- Updated dependencies [2f9a300]
- @leafygreen-ui/[email protected]
- 9c45cb4: Traps focus within the Menu when Menu is open and keyboard navigation is now accessible
- f6b6b7a: No longer renders children of Popover component to the DOM when the Popover is closed
- 319fb82: Updates PropTypes based on eslint updates
- Updated dependencies [9c45cb4]
- Updated dependencies [f6b6b7a]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [12fb220]:
- @leafygreen-ui/[email protected]
- 3a24668: Replaces existing Escape handling with new useEscapeKey hook
- aaa895e:
- Fixes storybook, such that it reflects a generic Menu rather than MongoMenu
- Fixes bug with
disabled
MenuItem styles
- 23c7d20: Changes the semantic HTML for MenuItem component, as well as updates the styles of the entire Menu, which involves removing @leafygreen-ui/theme as a dependency and adding @leafygreen-ui/palette.
- ec4d8da: Removes
role='menu'
from MenuGroup in order to make component accessible
- 7825641:
- Updates Menu API, such that the controlled version now accepts
open
andsetOpen
props. UsingsetOpen
allows leafygreen to handle backdrop clicks and Escape key-presses for consuming applications. - Previously the prop that controlled whether or not the Menu component would appear as open was called
active
, now the prop's name isopen
. - Adds
setOpen
prop to allow leafygreen to help a consuming application, using the controlled api, closeMenu
component when backdrop is clicked or escape key is pressed. - Adds
shouldClose
prop, so that consuming application can opt-out of default closing behavior.
- Updates Menu API, such that the controlled version now accepts