Skip to content

Commit 2e0a8af

Browse files
committed
feat(ISCT-540): dropdown option v1 get new tooltiped icon
1 parent ed98e07 commit 2e0a8af

File tree

5 files changed

+42
-0
lines changed

5 files changed

+42
-0
lines changed

projects/fusion-docs/src/app/pages/components/dropdown-docs/dropdown-docs.component.html

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/fusion-docs/src/app/pages/components/dropdown-docs/dropdown-docs.component.ts

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/fusion-ui/components/dropdown-option/common/base/dropdown-option.base.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<fusion-icon *ngIf="option.indicationStatus"
1010
[name]="{iconName: 'status-dots', iconVersion: 'v1'}"></fusion-icon>
1111
<span innerHTML="{{ optionToStringFunc | generic: option:mappingOptions:settings }}"></span>
12+
<span *ngIf="option.tooltipedIcon && !option.isDisabled">
13+
<fusion-icon class="option-tooltiped-icon"
14+
[fusionTooltip]="option.tooltipedIcon?.tooltipText"
15+
[name]="option.tooltipedIcon?.iconName"></fusion-icon>
16+
</span>
1217
<div *ngIf="option.subText?.text && shouldDisplayMultiRaw" class="sub-text-container">
1318
<fusion-icon *ngIf="option.subText?.icon" class="sub-text-icon" [name]="option.subText?.icon"></fusion-icon>
1419
<label>{{ option.subText?.text }}</label>

projects/fusion-ui/components/dropdown-option/entities/dropdown-option.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ export interface DropdownOption {
2525
tooltipCustom?: TooltipCustom;
2626
isDisabled?: boolean;
2727
content?: DynamicComponentConfiguration; // dynamic content as option
28+
/**
29+
* This property for option in component v1
30+
*/
31+
tooltipedIcon?: {
32+
iconName: string;
33+
tooltipText: string;
34+
};
2835
}

projects/fusion-ui/components/dropdown-option/v1/dropdown-option.component.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
}
2525
}
2626

27+
.option-tooltiped-icon{
28+
width: 14px;
29+
height: 14px;
30+
margin-left: 5px;
31+
color: $light-700;
32+
vertical-align: text-top;
33+
}
34+
2735
img {
2836
max-width: 19px;
2937
@extend %borderRadius;

0 commit comments

Comments
 (0)