From d521cae5fc70fe69100a45cde8226eb8d3b78287 Mon Sep 17 00:00:00 2001 From: melloware Date: Sat, 10 Feb 2024 07:56:39 -0500 Subject: [PATCH] Fix #5932: Inline tooltip PT options respected --- components/lib/autocomplete/AutoComplete.js | 2 +- components/lib/button/Button.js | 2 +- components/lib/checkbox/Checkbox.js | 2 +- components/lib/chips/Chips.js | 2 +- components/lib/colorpicker/ColorPicker.js | 2 +- components/lib/datatable/HeaderCell.js | 2 +- components/lib/dropdown/Dropdown.js | 2 +- components/lib/inputnumber/InputNumber.js | 2 +- components/lib/inputswitch/InputSwitch.js | 2 +- components/lib/inputtext/InputText.js | 2 +- components/lib/inputtextarea/InputTextarea.js | 2 +- components/lib/listbox/ListBox.js | 2 +- components/lib/multiselect/MultiSelect.js | 2 +- components/lib/multistatecheckbox/MultiStateCheckbox.js | 2 +- components/lib/radiobutton/RadioButton.js | 2 +- components/lib/rating/Rating.js | 2 +- components/lib/selectbutton/SelectButton.js | 2 +- components/lib/splitbutton/SplitButton.js | 2 +- components/lib/togglebutton/ToggleButton.js | 2 +- components/lib/treeselect/TreeSelect.js | 2 +- components/lib/tristatecheckbox/TriStateCheckbox.js | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/components/lib/autocomplete/AutoComplete.js b/components/lib/autocomplete/AutoComplete.js index a5d41e56b8..f27b744df7 100644 --- a/components/lib/autocomplete/AutoComplete.js +++ b/components/lib/autocomplete/AutoComplete.js @@ -770,7 +770,7 @@ export const AutoComplete = React.memo( sx={sx} /> - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/button/Button.js b/components/lib/button/Button.js index 0c34e43e69..398a667d59 100644 --- a/components/lib/button/Button.js +++ b/components/lib/button/Button.js @@ -132,7 +132,7 @@ export const Button = React.memo( {badge} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/checkbox/Checkbox.js b/components/lib/checkbox/Checkbox.js index decf34543e..cb818642b2 100644 --- a/components/lib/checkbox/Checkbox.js +++ b/components/lib/checkbox/Checkbox.js @@ -184,7 +184,7 @@ export const Checkbox = React.memo(
{checkboxIcon}
- {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/chips/Chips.js b/components/lib/chips/Chips.js index 8f91c3a996..fd30a19533 100644 --- a/components/lib/chips/Chips.js +++ b/components/lib/chips/Chips.js @@ -443,7 +443,7 @@ export const Chips = React.memo( return ( <>
{list}
- {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/colorpicker/ColorPicker.js b/components/lib/colorpicker/ColorPicker.js index 4d4635a64b..4e40380b3c 100644 --- a/components/lib/colorpicker/ColorPicker.js +++ b/components/lib/colorpicker/ColorPicker.js @@ -679,7 +679,7 @@ export const ColorPicker = React.memo( {content} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/datatable/HeaderCell.js b/components/lib/datatable/HeaderCell.js index 5de529237b..b85ff3376a 100644 --- a/components/lib/datatable/HeaderCell.js +++ b/components/lib/datatable/HeaderCell.js @@ -402,7 +402,7 @@ export const HeaderCell = React.memo((props) => { {resizer} {header} - {hasTooltip && } + {hasTooltip && } ); }; diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index 9fdfb241e0..ab35d4bef2 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -1237,7 +1237,7 @@ export const Dropdown = React.memo( /> - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index 2bffe3d51d..3bd88f7796 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -1272,7 +1272,7 @@ export const InputNumber = React.memo( {inputElement} {buttonGroup} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/inputswitch/InputSwitch.js b/components/lib/inputswitch/InputSwitch.js index 4591689ec3..b3a08239f6 100644 --- a/components/lib/inputswitch/InputSwitch.js +++ b/components/lib/inputswitch/InputSwitch.js @@ -141,7 +141,7 @@ export const InputSwitch = React.memo( - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/inputtext/InputText.js b/components/lib/inputtext/InputText.js index ab704e504d..2f0735f438 100644 --- a/components/lib/inputtext/InputText.js +++ b/components/lib/inputtext/InputText.js @@ -84,7 +84,7 @@ export const InputText = React.memo( return ( <> - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/inputtextarea/InputTextarea.js b/components/lib/inputtextarea/InputTextarea.js index 445041031a..4054bd6e54 100644 --- a/components/lib/inputtextarea/InputTextarea.js +++ b/components/lib/inputtextarea/InputTextarea.js @@ -143,7 +143,7 @@ export const InputTextarea = React.memo( return ( <> - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/listbox/ListBox.js b/components/lib/listbox/ListBox.js index 7377e05e81..0f2c750722 100644 --- a/components/lib/listbox/ListBox.js +++ b/components/lib/listbox/ListBox.js @@ -853,7 +853,7 @@ export const ListBox = React.memo(
{list}
- {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/multiselect/MultiSelect.js b/components/lib/multiselect/MultiSelect.js index 5582c33456..a905211e27 100644 --- a/components/lib/multiselect/MultiSelect.js +++ b/components/lib/multiselect/MultiSelect.js @@ -1126,7 +1126,7 @@ export const MultiSelect = React.memo( /> - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/multistatecheckbox/MultiStateCheckbox.js b/components/lib/multistatecheckbox/MultiStateCheckbox.js index 431760db11..6443bd2bb4 100644 --- a/components/lib/multistatecheckbox/MultiStateCheckbox.js +++ b/components/lib/multistatecheckbox/MultiStateCheckbox.js @@ -195,7 +195,7 @@ export const MultiStateCheckbox = React.memo(
{icon}
{focusedState && {ariaValueLabel}} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/radiobutton/RadioButton.js b/components/lib/radiobutton/RadioButton.js index a7e910bead..b6a50468a7 100644 --- a/components/lib/radiobutton/RadioButton.js +++ b/components/lib/radiobutton/RadioButton.js @@ -183,7 +183,7 @@ export const RadioButton = React.memo(
- {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/rating/Rating.js b/components/lib/rating/Rating.js index 08c49b9a47..c05ec0de76 100644 --- a/components/lib/rating/Rating.js +++ b/components/lib/rating/Rating.js @@ -214,7 +214,7 @@ export const Rating = React.memo( {cancelIcon} {icons} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/selectbutton/SelectButton.js b/components/lib/selectbutton/SelectButton.js index d422ed3390..f4ec67264c 100644 --- a/components/lib/selectbutton/SelectButton.js +++ b/components/lib/selectbutton/SelectButton.js @@ -149,7 +149,7 @@ export const SelectButton = React.memo( return ( <>
{items}
- {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/splitbutton/SplitButton.js b/components/lib/splitbutton/SplitButton.js index b9224c7f7b..965ab63e21 100644 --- a/components/lib/splitbutton/SplitButton.js +++ b/components/lib/splitbutton/SplitButton.js @@ -209,7 +209,7 @@ export const SplitButton = React.memo( pt={ptm('menu')} /> - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/togglebutton/ToggleButton.js b/components/lib/togglebutton/ToggleButton.js index 32c89150b9..f253711181 100644 --- a/components/lib/togglebutton/ToggleButton.js +++ b/components/lib/togglebutton/ToggleButton.js @@ -129,7 +129,7 @@ export const ToggleButton = React.memo( {label} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/treeselect/TreeSelect.js b/components/lib/treeselect/TreeSelect.js index 67b49859e1..c04667d49b 100644 --- a/components/lib/treeselect/TreeSelect.js +++ b/components/lib/treeselect/TreeSelect.js @@ -878,7 +878,7 @@ export const TreeSelect = React.memo( > {content} - {hasTooltip && } + {hasTooltip && } ); }) diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.js b/components/lib/tristatecheckbox/TriStateCheckbox.js index daddaacb69..cc8ab532ff 100644 --- a/components/lib/tristatecheckbox/TriStateCheckbox.js +++ b/components/lib/tristatecheckbox/TriStateCheckbox.js @@ -153,7 +153,7 @@ export const TriStateCheckbox = React.memo(
{checkIcon}
{focusedState && {ariaValueLabel}} - {hasTooltip && } + {hasTooltip && } ); })