-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(orga): delete TooltipWithIcon component and replace with Tooltip…
… and Icon
- Loading branch information
1 parent
cb11e97
commit 2ab4172
Showing
8 changed files
with
75 additions
and
76 deletions.
There are no files selected for viewing
31 changes: 20 additions & 11 deletions
31
orga/app/components/campaign/results/evolution-header.gjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import PixIcon from '@1024pix/pix-ui/components/pix-icon'; | ||
import PixTooltip from '@1024pix/pix-ui/components/pix-tooltip'; | ||
import { concat } from '@ember/helper'; | ||
import { t } from 'ember-intl'; | ||
|
||
import TooltipWithIcon from '../../ui/tooltip-with-icon'; | ||
|
||
<template> | ||
<div class="evolution-header {{if @align (concat 'evolution-header--' @align)}}"> | ||
|
||
{{t "pages.campaign-results.table.column.evolution"}} | ||
|
||
<TooltipWithIcon | ||
@iconName="help" | ||
@position="top" | ||
@isInline={{true}} | ||
@plainIcon={{true}} | ||
@content={{@tooltipContent}} | ||
@ariaHiddenIcon={{true}} | ||
@iconClass="tooltip-with-icon--small" | ||
/> | ||
<PixTooltip @id="evolution-tooltip" @position="top" @isInline={{true}} class="evolution-header__tooltip"> | ||
<:triggerElement> | ||
|
||
<PixIcon | ||
@name="help" | ||
@plainIcon={{true}} | ||
aria-describedby="evolution-tooltip" | ||
@ariaHidden={{true}} | ||
class="tooltip__icon--small" | ||
/> | ||
|
||
</:triggerElement> | ||
|
||
<:tooltip> | ||
{{@tooltipContent}} | ||
</:tooltip> | ||
|
||
</PixTooltip> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
orga/app/styles/components/campaign/results/participation-evolution-icon.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.participation-evolution-icon { | ||
display: inline-flex; | ||
|
||
|
||
&__increase{ | ||
width: 1.7rem; | ||
height: 1.7rem; | ||
fill: var(--pix-success-500); | ||
} | ||
|
||
&__decrease { | ||
width: 1.7rem; | ||
height: 1.7rem; | ||
fill: var(--pix-error-500); | ||
} | ||
|
||
&__stable { | ||
width: 1.7rem; | ||
height: 1.7rem; | ||
fill: var(--pix-warning-500); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.