Skip to content

Commit

Permalink
Corrige affichage explication congés restants
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Jul 12, 2024
1 parent 1e444f6 commit 9865717
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 34 deletions.
17 changes: 0 additions & 17 deletions src/assets/styles/defaults.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,3 @@ fieldset {
dialog {
margin: auto;
}

:popover-open {
position: absolute;
inset: unset;
margin: var(--w);
white-space: wrap;
border: 1px solid var(--border-default);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-default);
padding: var(--w);
font-weight: normal;
text-transform: none;
}

[popovertarget]:focus {
outline: solid 2px;
}
10 changes: 10 additions & 0 deletions src/assets/styles/utilities/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@
.pc-bold {
font-weight: bold;
}

.pc-text--default {
font-size: var(--font-size-default);
font-weight: normal;
text-transform: none;
}

.pc-text--small {
font-size: var(--font-size-sm);
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
<span>
{{ 'leaves-overview-daysRemaining'|trans }}
</span>

<span class="pc-relative">
<button
popovertarget="leaves-explanation"
class="pc-btn pc-btn--secondary pc-btn--circle"
title="{{ 'leaves-overview-daysRemaining-showExplanation'|trans }}"
aria-label="{{ 'leaves-overview-daysRemaining-showExplanation'|trans }}"
>i</button>

<div id="leaves-explanation" popover>
{{ 'leaves-overview-daysRemaining-explanation'|trans({ daysPerYear: daysPerYear }) }}
</div>
{{ 'leaves-overview-daysRemaining'|trans }}
<br>
<span class="pc-text--default pc-text--small">
({{ 'leaves-overview-daysRemaining-explanation'|trans({ daysPerYear: daysPerYear }) }})
</span>
4 changes: 2 additions & 2 deletions src/translations/fr-FR.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ leaves-overview-daysRemaining-value = {$daysRemaining ->
[1] 1 jour
*[other] {$daysRemaining} jours
}
leaves-overview-daysRemaining-explanation = Estimation sur une base de {$daysPerYear ->
leaves-overview-daysRemaining-explanation = {$daysPerYear ->
[0] 0
[1] 1 jour
*[other] {$daysPerYear} jours
} par an, hors congés exceptionnels
} par an, réinitialisé le 01/06, hors congés exceptionnels
payroll-elements-title = Éléments de paie
payroll-elements-page-title = Éléments de paie {DATETIME($date, month: "long", year: "numeric")}
Expand Down

0 comments on commit 9865717

Please sign in to comment.