Skip to content

Commit 66444dd

Browse files
committed
feat: add css for bulk check in Checkbox
1 parent d16ca87 commit 66444dd

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

src/assets/icons/ic-bulk-check.svg

Lines changed: 5 additions & 0 deletions
Loading

src/components/v2/common/ReactSelect.utils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export function Option(props) {
123123
export function DropdownIndicator(props) {
124124
return (
125125
<components.DropdownIndicator {...props}>
126+
{/* FIXME: Why are we hard coding test id here? */}
126127
<ArrowDown className="icon-dim-20 icon-n5" data-testid="overview-project-edit-dropdown" />
127128
</components.DropdownIndicator>
128129
)

src/css/base.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,6 +2058,10 @@ button.anchor {
20582058

20592059
.dc__border-dashed {
20602060
border: 1px dashed var(--N200);
2061+
2062+
&--n3 {
2063+
border: 1px dashed var(--N300);
2064+
}
20612065
}
20622066

20632067
.dc__border-n1 {
@@ -2104,6 +2108,10 @@ button.anchor {
21042108
border-bottom: 2px solid var(--N200);
21052109
}
21062110

2111+
.dc__border-bottom-b5-2 {
2112+
border-bottom: 2px solid var(--B500) !important;
2113+
}
2114+
21072115
.dc__border-left {
21082116
border-left: solid 1px var(--N200);
21092117
}
@@ -2207,6 +2215,10 @@ button.anchor {
22072215
max-width: 200px !important;
22082216
}
22092217

2218+
.dc__mxw-250 {
2219+
max-width: 250px;
2220+
}
2221+
22102222
.dc__mxw-300 {
22112223
max-width: 300px;
22122224
}
@@ -2931,6 +2943,10 @@ textarea,
29312943
}
29322944

29332945
// Width in percentage
2946+
.mw-100p {
2947+
min-width: 100%;
2948+
}
2949+
29342950
.w-25 {
29352951
width: 25%;
29362952
}
@@ -2997,6 +3013,10 @@ textarea,
29973013
min-width: 200px;
29983014
}
29993015

3016+
.min-w-140 {
3017+
min-width: 140px;
3018+
}
3019+
30003020
.dc__mnw-100 {
30013021
min-width: 100px;
30023022
}
@@ -3446,6 +3466,10 @@ textarea,
34463466
margin-bottom: -1px;
34473467
}
34483468

3469+
.mb-neg-2{
3470+
margin-bottom: -2px;
3471+
}
3472+
34493473
.m-0-imp {
34503474
margin: 0 !important;
34513475
}
@@ -3555,6 +3579,14 @@ textarea,
35553579
overflow: scroll !important;
35563580
}
35573581

3582+
.dc__hide-hscroll {
3583+
overflow-x: hidden;
3584+
}
3585+
3586+
.dc__hscroll {
3587+
overflow-x: scroll;
3588+
}
3589+
35583590
.dc__no-svg-fill {
35593591
path {
35603592
fill: none !important;
@@ -4083,3 +4115,10 @@ textarea::placeholder {
40834115
}
40844116

40854117
// End: accouncement banner
4118+
4119+
.bulk-selection-widget {
4120+
border: 1px solid var(--B500);
4121+
background: rgba(240, 247, 255, 0.80);
4122+
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.35);
4123+
backdrop-filter: blur(5px);
4124+
}

src/css/forms.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ p.sentence-case:first-letter {
314314
background-image: url('../assets/icons/ic-checkbox-selected.svg');
315315
}
316316

317+
.form__checkbox:checked[value='BULK_CHECKED']~.form__checkbox-container {
318+
background-image: url('../assets/icons/ic-bulk-check.svg');
319+
}
320+
317321
.any-selected {
318322

319323
background-image: url('../assets/icons/ic-checkbox-intermediate.svg');

0 commit comments

Comments
 (0)