Skip to content

Commit c13ac40

Browse files
Amit KumarAmit Kumar
authored andcommitted
add title in input fields
1 parent f3dab08 commit c13ac40

File tree

12 files changed

+12
-1
lines changed

12 files changed

+12
-1
lines changed

packages/react-vanilla-components/src/components/CheckBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const CheckBox = (props: PROPS) => {
5454
id={`${id}-widget`}
5555
type='checkbox'
5656
className={'cmp-adaptiveform-checkbox__widget'}
57+
title={props.tooltip || ''}
5758
onChange={handleChange}
5859
value={value}
5960
checked={selectedValue === value ? true : false}

packages/react-vanilla-components/src/components/CheckBoxGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const CheckBoxGroup = (props: PROPS) => {
7575
className={`cmp-adaptiveform-checkboxgroup__widget ${orientation}`}
7676
id={`${id}-widget`}
7777
aria-describedby={syncAriaDescribedBy(id, props.tooltip, props.description, props.errorMessage)}
78+
title={props.tooltip || ''}
7879
>
7980
{options?.map((item, index: number) => (
8081
<div className={`cmp-adaptiveform-checkboxgroup-item ${name}`} key={enums![index]}>

packages/react-vanilla-components/src/components/DateInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const DateInput = (props: PROPS) => {
6666
required={required}
6767
onChange={changeHandler}
6868
className={'cmp-adaptiveform-datepicker__widget'}
69+
title={props.tooltip || ''}
6970
aria-label={label?.value}
7071
readOnly={readOnly}
7172
placeholder={placeholder}

packages/react-vanilla-components/src/components/DropDown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const DropDown = (props: PROPS) => {
5454
id={`${id}-widget`}
5555
data-testid='select'
5656
name={name}
57-
title={label?.value}
57+
title={props.tooltip || ''}
5858
className={'cmp-adaptiveform-dropdown__widget'}
5959
onChange={changeHandler}
6060
value={selectedValue}

packages/react-vanilla-components/src/components/Email.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const Email = (props: PROPS) => {
6262
type="email"
6363
id={`${id}-widget`}
6464
className={'cmp-adaptiveform-emailinput__widget'}
65+
title={props.tooltip || ''}
6566
value={value}
6667
onChange={handleChange}
6768
onBlur={handleBlur}

packages/react-vanilla-components/src/components/FileUpload.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ const FileUpload = (props: PROPS) => {
169169
<input
170170
ref={fileInputField}
171171
className="cmp-adaptiveform-fileinput__widget"
172+
title={props.tooltip || ''}
172173
id={id}
173174
type="file"
174175
name={name}

packages/react-vanilla-components/src/components/NumberField.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const NumberField = (props: PROPS) => {
6060
id={`${id}-widget`}
6161
type='number'
6262
className={'cmp-adaptiveform-numberinput__widget'}
63+
title={props.tooltip || ''}
6364
value={value}
6465
onChange={changeHandler}
6566
required={required}

packages/react-vanilla-components/src/components/RadioButtonGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const RadioButtonGroup = (props: PROPS) => {
5656
id={`${id}-widget`}
5757
role="radiogroup"
5858
aria-describedby={syncAriaDescribedBy(id, props.tooltip, props.description, props.errorMessage)}
59+
title={props.tooltip || ''}
5960
>
6061
{options?.map((item, index: number) => (
6162
<div className="cmp-adaptiveform-radiobutton__option" key={enums![index]}>

packages/react-vanilla-components/src/components/Switch.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const Switch = (props: PROPS) => {
7777
<input
7878
className="cmp-adaptiveform-switch__widget"
7979
type="checkbox"
80+
title={props.tooltip || ''}
8081
name={name}
8182
role="switch"
8283
disabled={!enabled}

packages/react-vanilla-components/src/components/TelephoneInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const TelephoneInput = (props: PROPS) => {
4242
type="tel"
4343
id={`${id}-widget`}
4444
className={'cmp-adaptiveform-telephoneinput__widget'}
45+
title={props.tooltip || ''}
4546
value={value || ''}
4647
onChange={handleChange}
4748
onBlur={handleBlur}

0 commit comments

Comments
 (0)