diff --git a/packages/lib/src/bulleted-list/BulletedList.tsx b/packages/lib/src/bulleted-list/BulletedList.tsx index f52b11cdb..204866392 100644 --- a/packages/lib/src/bulleted-list/BulletedList.tsx +++ b/packages/lib/src/bulleted-list/BulletedList.tsx @@ -82,44 +82,40 @@ const ListItem = styled.li` const BulletedListItem = ({ children }: BulletedListItemPropsType): JSX.Element => <>{children}>; -const DxcBulletedList = ({ children, type = "disc", icon = "" }: BulletedListPropsType): JSX.Element => { - const colorsTheme = useContext(HalstackContext); - - return ( - - - {Children.map(children, (child, index) => ( - - - {type === "number" ? ( - - {index + 1}. - - ) : type === "square" ? ( - - - - ) : type === "circle" ? ( - - - - ) : type === "icon" ? ( - - {typeof icon === "string" ? : icon} - - ) : ( - - - - )} - {child} - - - ))} - - - ); -}; +const DxcBulletedList = ({ children, type = "disc", icon = "" }: BulletedListPropsType): JSX.Element => ( + + + {Children.map(children, (child, index) => ( + + + {type === "number" ? ( + + {index + 1}. + + ) : type === "square" ? ( + + + + ) : type === "circle" ? ( + + + + ) : type === "icon" ? ( + + {typeof icon === "string" ? : icon} + + ) : ( + + + + )} + {child} + + + ))} + + +); DxcBulletedList.Item = BulletedListItem; diff --git a/packages/lib/src/contextual-menu/ContextualMenu.stories.tsx b/packages/lib/src/contextual-menu/ContextualMenu.stories.tsx index 82aa8727b..a3ff8a3b3 100644 --- a/packages/lib/src/contextual-menu/ContextualMenu.stories.tsx +++ b/packages/lib/src/contextual-menu/ContextualMenu.stories.tsx @@ -176,46 +176,42 @@ const ContextualMenu = () => ( > ); -const Single = () => { - const colorsTheme = useContext(HalstackContext); - - return ( - - {} }}> - - - - - - - - - - - - - - - - - - {} }}> - - - - - - - - - - - - - - - ); -}; +const Single = () => ( + + {} }}> + + + + + + + + + + + + + + + + + + {} }}> + + + + + + + + + + + + + + +); const ItemWithEllipsis = () => ( diff --git a/packages/lib/src/dropdown/Dropdown.stories.tsx b/packages/lib/src/dropdown/Dropdown.stories.tsx index 31399aa90..855da9c7a 100644 --- a/packages/lib/src/dropdown/Dropdown.stories.tsx +++ b/packages/lib/src/dropdown/Dropdown.stories.tsx @@ -211,111 +211,102 @@ const Dropdown = () => ( > ); -const DropdownListStates = () => { - const colorsTheme: any = useContext(HalstackContext); - - return ( - <> - - - - - {}} - size="medium" - /> - Submit - - - - - - {}} - onKeyDown={() => {}} - options={optionWithIcon} - styles={{ width: 240 }} - /> - - - - {}} - onKeyDown={() => {}} - options={optionWithIcon} - styles={{ width: 240 }} - /> - - - - {}} - onKeyDown={() => {}} - options={options} - styles={{ width: 240 }} - /> - - - - - {}} - onKeyDown={() => {}} - options={optionsIcon} - styles={{ width: 240 }} - /> - - {}} - onKeyDown={() => {}} - options={optionsIcon} - styles={{ width: 240 }} - /> - - > - ); -}; +const DropdownListStates = () => ( + <> + + + + + {}} size="medium" /> + Submit + + + + + + {}} + onKeyDown={() => {}} + options={optionWithIcon} + styles={{ width: 240 }} + /> + + + + {}} + onKeyDown={() => {}} + options={optionWithIcon} + styles={{ width: 240 }} + /> + + + + {}} + onKeyDown={() => {}} + options={options} + styles={{ width: 240 }} + /> + + + + + {}} + onKeyDown={() => {}} + options={optionsIcon} + styles={{ width: 240 }} + /> + + {}} + onKeyDown={() => {}} + options={optionsIcon} + styles={{ width: 240 }} + /> + + > +); const TooltipTitle = () => (