Skip to content

Commit 4fa28d9

Browse files
(Lookup): refactor variable names for clarity
1 parent 69dfbf0 commit 4fa28d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scripts/Lookup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ const LookupDropdown: FC<LookupDropdownProps> = ({
694694
<div
695695
id={listboxId}
696696
className='slds-dropdown slds-dropdown_length-with-icon-7 slds-dropdown_fluid slds-scrollable_none'
697-
style={{ maxHeight: RESET_MAX_HEIGHT }}
697+
style={{ maxHeight: LIST_PARENT_MAX_HEIGHT }}
698698
role='listbox'
699699
aria-label='Search Results'
700700
tabIndex={0}
@@ -724,7 +724,7 @@ const LookupDropdown: FC<LookupDropdownProps> = ({
724724
) : null}
725725
<ul
726726
className='slds-listbox slds-listbox_vertical slds-scrollable_y'
727-
style={{ maxHeight: MAIN_LIST_BOX_MAX_HEIGHT }}
727+
style={{ maxHeight: LIST_CONTENT_MAX_HEIGHT }}
728728
role='presentation'
729729
onKeyDown={onKeyDown}
730730
onBlur={onBlur}
@@ -772,8 +772,8 @@ const LookupDropdown: FC<LookupDropdownProps> = ({
772772
};
773773

774774
// manually replaces where `max-height` is specified
775-
const RESET_MAX_HEIGHT = 'unset';
776-
const MAIN_LIST_BOX_MAX_HEIGHT = 'calc((1.5rem + 1rem) * 7)'; // copied from `.slds-dropdown_length-with-icon-7`
775+
const LIST_PARENT_MAX_HEIGHT = 'unset';
776+
const LIST_CONTENT_MAX_HEIGHT = 'calc((1.5rem + 1rem) * 7)'; // copied from `.slds-dropdown_length-with-icon-7`
777777

778778
/**
779779
*

0 commit comments

Comments
 (0)