Based on the image, you can see that the height for first level items (ie: Splice APIs) is smaller than the height for second level (ie: Splice Archiecture) items (dropdown)
Current:
first level item
- 26px height
- text-height: 18pc
- padding-top/bottom: 4px
second level item
- 36px height
- text-height: 24px
- padding-top/bottom: 6px
Desired outcome:
- all items to be the same in total height
- selected items (bold text) -> padding-top/bottom: 1px = total 26px height
- or update the second level text height (24px) to follow the first level items (18px)
- line-height: 1.5

Based on the image, you can see that the height for first level items (ie: Splice APIs) is smaller than the height for second level (ie: Splice Archiecture) items (dropdown)
Current:
first level item
second level item
Desired outcome: