Skip to content

Commit

Permalink
feat: added tooltip for picklist field
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Nov 6, 2023
1 parent 3474092 commit cccae55
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src-ui/main/default/lwc/flowCombobox/flowCombobox.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.no-pointer-event {
pointer-events: none;
}

lightning-helptext.slds-form-element__icon {
padding-top: 0;
vertical-align: auto;
}
17 changes: 14 additions & 3 deletions src-ui/main/default/lwc/flowCombobox/flowCombobox.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
class="slds-required"
title="required"
>*</abbr
>{label}</label
>
>{label}
<lightning-helptext
lwc:if={helptext}
content={helptext}
>
</lightning-helptext>
</label>
<div
id="pill-container"
data-input-name={name}
Expand Down Expand Up @@ -53,8 +58,14 @@
class="slds-required"
title="required"
>*</abbr
>{label}</label
>{label}
</label>
<lightning-helptext
lwc:if={helptext}
content={helptext}
class="slds-form-element__icon"
>
</lightning-helptext>
<lightning-input
id="this-input"
class="value-input"
Expand Down
1 change: 1 addition & 0 deletions src-ui/main/default/lwc/flowCombobox/flowCombobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
export default class FlowCombobox extends LightningElement {
@api name;
@api label;
@api helptext;
@api required = false;
@api builderContextFilterType;
@api builderContextFilterCollectionBoolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
name="qualifiedPicklistFieldName"
class="qualifiedPicklistFieldName"
label="Qualified Picklist Field Name"
helptext="Qualified picklist field API Name such as 'Account.Industry' or 'Custom_Object__c.Custom_Field__c'."
value={qualifiedPicklistFieldName}
value-type={qualifiedPicklistFieldNameValueType}
builder-context={builderContext}
Expand Down

0 comments on commit cccae55

Please sign in to comment.