diff --git a/packages/lib/src/action-icon/types.ts b/packages/lib/src/action-icon/types.ts index c52717494..fa72c3d33 100644 --- a/packages/lib/src/action-icon/types.ts +++ b/packages/lib/src/action-icon/types.ts @@ -9,7 +9,7 @@ type Props = { /** * Value for the HTML properties title and aria-label. */ - title: string; + title?: string; /** * Material Symbol name or SVG element as the icon that will be placed next to the label. */ diff --git a/packages/lib/src/chip/Chip.tsx b/packages/lib/src/chip/Chip.tsx index eec5e44d3..d3322850a 100644 --- a/packages/lib/src/chip/Chip.tsx +++ b/packages/lib/src/chip/Chip.tsx @@ -71,7 +71,7 @@ const DxcChip = ({ icon={prefixIcon} onClick={onClickPrefix} tabIndex={tabIndex} - title="Prefix Action" + title={!disabled ? "Prefix Action" : undefined} /> ) : ( @@ -86,7 +86,7 @@ const DxcChip = ({ icon={suffixIcon} onClick={onClickSuffix} tabIndex={tabIndex} - title="Suffix Action" + title={!disabled ? "Suffix Action" : undefined} /> ) : ( diff --git a/packages/lib/src/select/Select.tsx b/packages/lib/src/select/Select.tsx index 8d31c160f..b62702cbd 100644 --- a/packages/lib/src/select/Select.tsx +++ b/packages/lib/src/select/Select.tsx @@ -15,7 +15,7 @@ import { import styled from "@emotion/styled"; import { spaces } from "../common/variables"; import DxcIcon from "../icon/Icon"; -import { Tooltip, TooltipWrapper } from "../tooltip/Tooltip"; +import { TooltipWrapper } from "../tooltip/Tooltip"; import { HalstackLanguageContext } from "../HalstackContext"; import useWidth from "../utils/useWidth"; import Listbox from "./Listbox"; @@ -524,7 +524,7 @@ const DxcSelect = forwardRef( {multiple && Array.isArray(selectedOption) && selectedOption.length > 0 && ( {selectedOption.length} - + ( > - + )} @@ -580,14 +580,14 @@ const DxcSelect = forwardRef( {searchable && searchValue.length > 0 && ( - + - + )}