Skip to content

Commit 49f12d6

Browse files
authored
fix(con/tp): DS updates on multiple components (#1028)
* Update text color on the chip for better accessibility * Rename className chip to card-tag to avoid specificity conflicts * Remove redundant styles * Replace bulma Tag component with our custom Chip component * Update icons color * Styling * Styling
1 parent d1951ca commit 49f12d6

14 files changed

Lines changed: 53 additions & 114 deletions

File tree

apps/redi-connect/src/pages/app/applications/DesktopView.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@
2222

2323
&--active {
2424
@extend .tabs-menu__item;
25-
color: $red;
26-
border-bottom: 3px solid $red;
25+
border-bottom: 3px solid $redi-blue-dark;
26+
}
27+
28+
&:hover {
29+
color: $black;
30+
border-bottom: 3px solid $redi-blue-dark;
2731
}
2832
}
2933
}

apps/redi-connect/src/pages/app/applications/application-card/ApplicationCard.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@
5656
}
5757

5858
&-name {
59+
margin-left: -2px;
5960
font-size: 12px;
60-
color: $grey;
61+
color: $grey-dark;
6162
}
6263
}
6364

6465
&__date {
6566
font-size: 12px;
66-
color: $grey;
67+
color: $grey-dark;
6768
}
6869

6970
&-details {

apps/redi-connect/src/pages/app/applications/application-card/MobileApplicationCard.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
display: flex;
2626
align-items: center;
2727
flex-direction: row;
28-
gap: 12px;
28+
gap: 10px;
2929
justify-content: space-between;
3030
}
3131

3232
&__avatar {
33-
width: 3rem;
34-
height: 3rem;
33+
width: 2.7rem;
34+
height: 2.7rem;
3535
z-index: 0;
3636
}
3737

@@ -58,14 +58,15 @@
5858
}
5959

6060
&-name {
61+
margin-left: -3px;
6162
font-size: 12px;
62-
color: $grey;
63+
color: $grey-dark;
6364
}
6465
}
6566

6667
&__date {
6768
font-size: 12px;
68-
color: $grey;
69+
color: $grey-dark;
6970
}
7071

7172
&-details {

apps/redi-talent-pool/src/components/organisms/JobListingCard.scss

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -70,45 +70,20 @@
7070
text-overflow: ellipsis;
7171
color: var(--black, #000);
7272
font-family: Avenir LT Std;
73-
font-size: 16px;
73+
font-size: 20px;
7474
font-style: normal;
7575
font-weight: 700;
76-
77-
@include mobile() {
78-
color: var(--black, #000);
79-
80-
/* Desktop/Body Text Small SemiBold */
81-
font-family: Avenir;
82-
font-size: 14px;
83-
font-style: normal;
84-
font-weight: 800;
85-
line-height: 150%; /* 21px */
86-
}
76+
margin-bottom: 12px;
8777
}
8878

8979
&__company-name {
90-
color: var(--grey, #a0a0a0);
80+
color: var(--grey-dark, #5d5d5d);
9181
font-family: Avenir;
9282
font-size: 14px;
9383
font-style: normal;
9484
font-weight: 800;
9585
line-height: 150%;
96-
margin-top: 2px;
9786
margin-bottom: 8px;
98-
99-
@include mobile() {
100-
color: var(--grey, #a0a0a0);
101-
102-
/* Desktop/Body Text Micro SemiBold */
103-
font-family: Avenir;
104-
font-size: 12px;
105-
font-style: normal;
106-
font-weight: 800;
107-
line-height: 150%; /* 18px */
108-
109-
margin-top: 4px;
110-
margin-bottom: 6px;
111-
}
11287
}
11388

11489
&__lastColumn {
@@ -149,9 +124,8 @@
149124
&__ellipsis {
150125
&__icon {
151126
&:hover {
152-
background-color: $redi-orange-extra-light;
127+
background-color: $redi-blue-light;
153128
border-radius: 50%;
154-
transform: scale(1.2);
155129
}
156130
}
157131
}
@@ -160,7 +134,7 @@
160134
margin-top: auto;
161135
font-size: 12px;
162136
font-weight: 400;
163-
color: var(--grey, #a0a0a0);
137+
color: var(--grey-dark, #5d5d5d);
164138
white-space: nowrap;
165139
height: 16px;
166140

apps/redi-talent-pool/src/components/organisms/jobseeker-profile-editables/EditableOverview.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
import {
77
Button,
88
Caption,
9+
Chip,
910
FormSelect,
1011
} from '@talent-connect/shared-atomic-design-components'
1112
import {
@@ -14,7 +15,7 @@ import {
1415
} from '@talent-connect/talent-pool/config'
1516
import { useFormik } from 'formik'
1617
import { useEffect, useMemo, useState } from 'react'
17-
import { Element, Tag } from 'react-bulma-components'
18+
import { Element } from 'react-bulma-components'
1819
import { useQueryClient } from 'react-query'
1920
import * as Yup from 'yup'
2021
import { useIsBusy } from '../../../hooks/useIsBusy'
@@ -53,11 +54,11 @@ export function EditableOverview({ profile, disableEditing }: Props) {
5354
) : (
5455
<>
5556
<Caption>Desired positions</Caption>
56-
<Tag.Group>
57+
<div className="tw-flex tw-items-center tw-flex-row tw-gap-2 tw-flex-wrap">
5758
{profile?.desiredPositions?.map((pos) => (
58-
<Tag key={pos}>{desiredPositionsIdToLabelMap[pos]}</Tag>
59+
<Chip key={pos} chip={desiredPositionsIdToLabelMap[pos]} />
5960
))}
60-
</Tag.Group>
61+
</div>
6162
</>
6263
)
6364
}

apps/redi-talent-pool/src/components/organisms/jobseeker-profile-editables/EditableSummary.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
import {
88
Button,
99
Caption,
10+
Chip,
1011
FaqItem,
1112
FormSelect,
1213
FormTextArea,
@@ -17,7 +18,7 @@ import {
1718
} from '@talent-connect/talent-pool/config'
1819
import { useFormik } from 'formik'
1920
import { useEffect, useMemo, useState } from 'react'
20-
import { Content, Element, Tag } from 'react-bulma-components'
21+
import { Content, Element } from 'react-bulma-components'
2122
import { useQueryClient } from 'react-query'
2223
import * as Yup from 'yup'
2324
import { useIsBusy } from '../../../hooks/useIsBusy'
@@ -60,11 +61,11 @@ export function EditableSummary({ profile, disableEditing }: Props) {
6061
</Content>
6162
<Caption>Top skills</Caption>
6263
{profile?.topSkills?.length > 0 ? (
63-
<Tag.Group>
64+
<div className="tw-flex tw-items-center tw-flex-row tw-gap-2 tw-flex-wrap">
6465
{profile?.topSkills?.map((skill) => (
65-
<Tag key={skill}>{topSkillsIdToLabelMap[skill]}</Tag>
66+
<Chip key={skill} chip={topSkillsIdToLabelMap[skill]} />
6667
))}
67-
</Tag.Group>
68+
</div>
6869
) : (
6970
<EmptySectionPlaceholder
7071
height="slim"
Lines changed: 3 additions & 3 deletions
Loading
Lines changed: 3 additions & 3 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

libs/shared-atomic-design-components/src/lib/atoms/CardLocation.scss

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
&-container {
77
display: flex;
88
flex-direction: row;
9-
margin-bottom: 33px;
10-
height: 16px;
11-
12-
@include mobile {
13-
margin-bottom: 16px;
14-
}
9+
margin-bottom: 24px;
1510
}
1611

1712
&-icon {
@@ -20,22 +15,14 @@
2015
}
2116

2217
&-text {
23-
color: var(--grey, #a0a0a0);
18+
color: var(--grey-dark, #5d5d5d);
2419
/* Desktop/Body Text Micro Regular */
2520
font-family: Avenir;
2621
font-size: 12px;
2722
font-style: normal;
2823
font-weight: 350;
2924
line-height: normal;
30-
31-
@include mobile() {
32-
color: var(--grey, #a0a0a0);
33-
font-family: Avenir;
34-
font-size: 11px;
35-
font-style: normal;
36-
font-weight: 350;
37-
line-height: normal;
38-
}
25+
margin-left: -2px;
3926
}
4027
}
4128
}

0 commit comments

Comments
 (0)