Skip to content

Commit 4032688

Browse files
committed
Update default styling of Signature component
1 parent 54af044 commit 4032688

File tree

5 files changed

+27
-56
lines changed

5 files changed

+27
-56
lines changed

.changeset/tall-bees-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ifrc-go/ui": minor
3+
---
4+
5+
Add printable Signature component

app/src/views/DrefApplicationExport/PgaExport/index.tsx

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -166,38 +166,14 @@ function PgaExport() {
166166
strongLabel
167167
withoutLabelColon
168168
/>
169-
<Signature
170-
label={strings.imminentSignature}
171-
strongLabel
172-
/>
173-
<Signature
174-
label={strings.imminentSignature}
175-
strongLabel
176-
/>
177-
<Signature
178-
label={strings.imminentPrintedSignatory}
179-
strongLabel
180-
/>
181-
<Signature
182-
label={strings.imminentPrintedSignatory}
183-
strongLabel
184-
/>
185-
<Signature
186-
label={strings.imminentTitle}
187-
strongLabel
188-
/>
189-
<Signature
190-
label={strings.imminentTitle}
191-
strongLabel
192-
/>
193-
<Signature
194-
label={strings.imminentDate}
195-
strongLabel
196-
/>
197-
<Signature
198-
label={strings.imminentDate}
199-
strongLabel
200-
/>
169+
<Signature label={strings.imminentSignature} />
170+
<Signature label={strings.imminentSignature} />
171+
<Signature label={strings.imminentPrintedSignatory} />
172+
<Signature label={strings.imminentPrintedSignatory} />
173+
<Signature label={strings.imminentTitle} />
174+
<Signature label={strings.imminentTitle} />
175+
<Signature label={strings.imminentDate} />
176+
<Signature label={strings.imminentDate} />
201177
</div>
202178
</Container>
203179
</div>

packages/ui/src/components/printable/Signature/index.tsx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
1-
import { _cs } from '@togglecorp/fujs';
2-
31
import styles from './styles.module.css';
42

53
export interface Props {
64
label: string;
7-
labelClassName?: string;
8-
strongLabel?: boolean;
95
}
106

117
function Signature(props: Props) {
12-
const {
13-
label,
14-
labelClassName,
15-
strongLabel,
16-
} = props;
8+
const { label } = props;
179

1810
return (
19-
<div className={styles.signedContainer}>
20-
<div className={styles.signaturePlace} />
11+
<div className={styles.signature}>
12+
<div className={styles.signatureSpace} />
2113
<div className={styles.line} />
22-
<div
23-
className={_cs(
24-
styles.label,
25-
strongLabel && styles.strong,
26-
labelClassName,
27-
)}
28-
>
14+
<div className={styles.label}>
2915
{label}
3016
</div>
3117
</div>

packages/ui/src/components/printable/Signature/styles.module.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
.signed-container {
2-
.signature-place {
3-
padding: var(--go-ui-spacing-sm);
1+
.signature {
2+
.signature-space {
3+
height: var(--go-ui-spacing-sm);
44
}
5+
56
.line {
67
border: var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);
78
}
@@ -10,9 +11,6 @@
1011
display: flex;
1112
align-items: center;
1213
flex-direction: column;
13-
}
14-
15-
.strong {
1614
color: var(--go-ui-color-black);
1715
font-weight: var(--go-ui-font-weight-semibold);
1816
}

translationMigrations/000014-1738749892644.json renamed to translationMigrations/000014-1738752511308.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@
253253
"namespace": "drefApplicationExport",
254254
"value": "If the National Society has developed contingency plans, or recently carried out PER assessment or readiness check for instance, kindly attached those documents to the request."
255255
},
256+
{
257+
"action": "add",
258+
"key": "plannedInterventionAltText",
259+
"namespace": "drefApplicationExport",
260+
"value": "Planned Intervention Image"
261+
},
256262
{
257263
"action": "add",
258264
"key": "priorityActionsBudget",

0 commit comments

Comments
 (0)