Skip to content

Commit 41aa18f

Browse files
alex-judidoo
andauthored
Apply suggestions from code review
Co-authored-by: Cristiano Rastelli <cristiano.rastelli@hashicorp.com>
1 parent 6291f23 commit 41aa18f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

packages/components/src/components/hds/dropdown/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type HdsDropdownPositions = `${HdsDropdownPositionValues}`;
1515

1616
// map Dropdown's `listPosition` values to PopoverPrimitive's `placement` values for backwards compatibility
1717
export const HdsDropdownPositionToPlacementValues: Record<
18+
// Dropdown's `listPosition` values
1819
HdsDropdownPositionValues,
1920
FloatingUIOptions['placement']
2021
> = {

website/docs/components/dropdown/partials/version-history/4.10.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
Added `@enableCollisionDetection` and `@isOpen` arguments
66

7-
Replaced the underlying `MenuPrimitive` with `PopoverPrimitive`
7+
Replaced the underlying `MenuPrimitive` with [`PopoverPrimitive`](/utilities/popover-primitive)

website/docs/utilities/menu-primitive/partials/code/how-to-use.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!!! Warning
22

3-
The `MenuPrimitive` component is deprecated and will be removed in a future major release. We recommend migrating to [PopoverPrimitive](/utilities/popover-primitive).
3+
The `MenuPrimitive` component is deprecated and will be removed in a future major release. We recommend migrating to [`PopoverPrimitive`](/utilities/popover-primitive).
44

55
!!!
66

website/docs/utilities/menu-primitive/partials/version-history/4.10.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ In this version we replaced all `MenuPrimitive` instances with `PopoverPrimitive
66

77
#### How to migrate
88

9-
Consider migrating the existing `MenuPrimitive` instances to [PopoverPrimitive](/utilities/popover-primitive).
9+
Consider migrating the existing `MenuPrimitive` instances to [`PopoverPrimitive`](/utilities/popover-primitive).

0 commit comments

Comments
 (0)