Skip to content

Commit

Permalink
feat(orga): create EvolutionHeader component
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBazin committed Nov 5, 2024
1 parent a924552 commit 1480258
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 16 deletions.
18 changes: 18 additions & 0 deletions orga/app/components/campaign/results/evolution-header.gjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { t } from 'ember-intl';

import TooltipWithIcon from '../../ui/tooltip-with-icon';

<template>
<div class="evolution-header">
{{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"
/>
</div>
</template>
2 changes: 1 addition & 1 deletion orga/app/styles/components/campaign/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import 'activity/dashboard';
@import 'analysis/competences';
@import 'results/assessment-cards';
@import 'results/assessment-list';
@import 'results/evolution-header';
@import 'analysis/recommendations';
@import 'analysis/recommendation-indicator';
@import 'analysis/tube-recommendation-row';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.evolution-header {
display: flex;
gap: var(--pix-spacing-1x);
align-items: center;

}

24 changes: 15 additions & 9 deletions orga/app/styles/components/ui/tooltip-with-icon.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
.tooltip-with-icon {
width: fit-content;


// @TODO: Remove !important when PixTooltip wil be fixed
&__increase{
width: 1.5rem !important;
height: 1.5rem !important;
fill: var(--pix-success-500) !important;
width: 1.5rem;
height: 1.5rem;
fill: var(--pix-success-500);
}

&__decrease {
width: 1.5rem !important;
height: 1.5rem !important;
fill: var(--pix-error-500) !important;
width: 1.5rem;
height: 1.5rem;
fill: var(--pix-error-500);
}

&__stable {
width: 1.5rem !important;
height: 1.5rem !important;
fill: var(--pix-warning-500) !important;
width: 1.5rem;
height: 1.5rem ;
fill: var(--pix-warning-500);
}

&--small {
width: 1rem;
height: 1rem;
}
}

0 comments on commit 1480258

Please sign in to comment.