Skip to content

Commit

Permalink
Merge pull request #1925 from Kajabi/develop
Browse files Browse the repository at this point in the history
Version Bump
  • Loading branch information
ju-Skinner authored Aug 2, 2024
2 parents bb39589 + b869368 commit ca11c73
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions packages/sage-react/lib/Dropdown/DropdownItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from 'classnames';
import { Checkbox } from '../Toggle';
import { Link } from '../Link';
import { Tooltip } from '../Tooltip';
import { SageTokens } from '../configs';
import { SageTokens, SageClassnames } from '../configs';
import { OptionsDropdown } from './OptionsDropdown';
import { DROPDOWN_ITEM_COLORS } from './configs';

Expand Down Expand Up @@ -117,9 +117,12 @@ export const DropdownItem = ({
value={label}
{...rest}
/>
<span className="sage-dropdown__item-label" title={label}>
{label}
</span>
<>
{icon && (<pds-icon class={`sage-dropdown__item-icon ${SageClassnames.SPACERS.XS_RIGHT}`} name={icon} />)}
<span className="sage-dropdown__item-label" title={label}>
{label}
</span>
</>
</label>
);
}
Expand All @@ -138,9 +141,12 @@ export const DropdownItem = ({
{...rest}
>
{(!customComponent && isLabelVisible) && (
<span className="sage-dropdown__item-label" title={label}>
{label}
</span>
<>
{icon && (<pds-icon class={`sage-dropdown__item-icon ${SageClassnames.SPACERS.XS_RIGHT}`} name={icon} />)}
<span className="sage-dropdown__item-label" title={label}>
{label}
</span>
</>
)}
{customComponent && <CustomComponent {...payload} />}
</Link>
Expand All @@ -157,9 +163,12 @@ export const DropdownItem = ({
{...rest}
>
{(!customComponent && isLabelVisible) && (
<span className="sage-dropdown__item-label" title={label}>
{label}
</span>
<>
{icon && (<pds-icon class={`sage-dropdown__item-icon ${SageClassnames.SPACERS.XS_RIGHT}`} name={icon} />)}
<span className="sage-dropdown__item-label" title={label}>
{label}
</span>
</>
)}
{customComponent && <CustomComponent {...payload} />}
</button>
Expand Down

0 comments on commit ca11c73

Please sign in to comment.