Skip to content

Commit 8089234

Browse files
Merge pull request #1597 from sumitdaga/issue-1328
fixes #1328
2 parents 9fb742b + 9f4752a commit 8089234

File tree

11 files changed

+44
-9
lines changed

11 files changed

+44
-9
lines changed

src/shared/components/Settings/Account/MyAccount/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
.form-mobile {
7272
display: none;
7373

74-
@include xs-to-sm {
74+
@include upto-sm {
7575
display: block;
7676

7777
.row {

src/shared/components/Settings/ToggleableItem/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
line-height: 20px;
2525
margin-bottom: 10px;
2626

27-
@include xs-to-sm {
27+
@include upto-sm {
2828
@include roboto-medium;
2929

3030
font-weight: 500;
@@ -40,7 +40,7 @@
4040
font-weight: 400;
4141
line-height: 20px;
4242

43-
@include xs-to-sm {
43+
@include upto-sm {
4444
font-size: 11px;
4545
}
4646
}

src/shared/components/Settings/Tools/Devices/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export default class Devices extends ConsentComponent {
393393
<div styleName="field col-1">
394394
<label htmlFor="deviceType">
395395
Device Type
396+
<span styleName="text-required">* Required</span>
396397
</label>
397398
<Select
398399
name="deviceType"
@@ -408,6 +409,7 @@ export default class Devices extends ConsentComponent {
408409
<div styleName="field col-1">
409410
<label htmlFor="manufacturer">
410411
Manufacturer
412+
<span styleName="text-required">* Required</span>
411413
</label>
412414
<input id="manufacturer" name="manufacturer" type="text" placeholder="Manufacturer" value={newDevice.manufacturer} onChange={this.onUpdateInput} maxLength="64" required />
413415
</div>
@@ -416,12 +418,14 @@ export default class Devices extends ConsentComponent {
416418
<div styleName="field col-2">
417419
<label htmlFor="model">
418420
Model
421+
<span styleName="text-required">* Required</span>
419422
</label>
420423
<input id="model" name="model" type="text" placeholder="Model" onChange={this.onUpdateInput} value={newDevice.model} maxLength="64" required />
421424
</div>
422425
<div styleName="field col-2">
423426
<label htmlFor="operating-system">
424427
Operating System
428+
<span styleName="text-required">* Required</span>
425429
</label>
426430
<input id="operating-system" name="operatingSystem" type="text" onChange={this.onUpdateInput} placeholder="Operating System" value={newDevice.operatingSystem} maxLength="64" required />
427431
</div>
@@ -430,12 +434,14 @@ export default class Devices extends ConsentComponent {
430434
<div styleName="field col-2">
431435
<label htmlFor="osVersion">
432436
OS version
437+
<span styleName="text-required">* Required</span>
433438
</label>
434439
<input id="os-version" name="osVersion" type="text" onChange={this.onUpdateInput} placeholder="OS version" value={newDevice.osVersion} maxLength="64" required />
435440
</div>
436441
<div styleName="field col-2">
437442
<label htmlFor="osLanguage">
438443
OS Language
444+
<span styleName="text-required">* Required</span>
439445
</label>
440446
<input id="os-language" name="osLanguage" type="text" onChange={this.onUpdateInput} placeholder="OS Language" value={newDevice.osLanguage} maxLength="64" required />
441447
</div>

src/shared/components/Settings/Tools/Devices/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@
146146
font-weight: 500;
147147
color: $tc-gray-80;
148148
margin-bottom: 5px;
149+
display: flex;
150+
justify-content: space-between;
151+
152+
.text-required {
153+
color: $tc-red-110;
154+
}
149155
}
150156

151157
&.col-1 {

src/shared/components/Settings/Tools/ServiceProviders/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ export default class ServiceProviders extends ConsentComponent {
321321
<div styleName="field col-1">
322322
<label htmlFor="serviceProviderType">
323323
Type
324+
<span styleName="text-required">* Required</span>
324325
</label>
325326
<Select
326327
name="serviceProviderType"
@@ -336,6 +337,7 @@ export default class ServiceProviders extends ConsentComponent {
336337
<div styleName="field col-2">
337338
<label htmlFor="name">
338339
Provider Name
340+
<span styleName="text-required">* Required</span>
339341
</label>
340342
<input id="name" name="name" type="text" placeholder="Name" onChange={this.onUpdateInput} value={newServiceProvider.name} maxLength="64" required />
341343
</div>

src/shared/components/Settings/Tools/ServiceProviders/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@
146146
font-weight: 500;
147147
color: $tc-gray-80;
148148
margin-bottom: 5px;
149+
display: flex;
150+
justify-content: space-between;
151+
152+
.text-required {
153+
color: $tc-red-110;
154+
}
149155
}
150156

151157
&.col-1 {

src/shared/components/Settings/Tools/Software/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ export default class Software extends ConsentComponent {
321321
<div styleName="field col-1">
322322
<label htmlFor="softwareType">
323323
Software Type
324+
<span styleName="text-required">* Required</span>
324325
</label>
325326
<Select
326327
name="softwareType"
@@ -336,6 +337,7 @@ export default class Software extends ConsentComponent {
336337
<div styleName="field col-2">
337338
<label htmlFor="name">
338339
Name
340+
<span styleName="text-required">* Required</span>
339341
</label>
340342
<input id="name" name="name" type="text" placeholder="Name" onChange={this.onUpdateInput} value={newSoftware.name} maxLength="64" required />
341343
</div>

src/shared/components/Settings/Tools/Software/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@
148148
font-weight: 500;
149149
color: $tc-gray-80;
150150
margin-bottom: 5px;
151+
display: flex;
152+
justify-content: space-between;
153+
154+
.text-required {
155+
color: $tc-red-110;
156+
}
151157
}
152158

153159
&.col-1 {

src/shared/components/Settings/Tools/Subscriptions/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ export default class Subscription extends ConsentComponent {
291291
<div styleName="field col-1">
292292
<label htmlFor="name">
293293
Name
294+
<span styleName="text-required">* Required</span>
294295
</label>
295296
<input id="name" name="name" type="text" placeholder="Name" onChange={this.onUpdateInput} value={newSubscription.name} maxLength="128" required />
296297
</div>

src/shared/components/Settings/Tools/Subscriptions/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@
146146
font-weight: 500;
147147
color: $tc-gray-80;
148148
margin-bottom: 5px;
149+
display: flex;
150+
justify-content: space-between;
151+
152+
.text-required {
153+
color: $tc-red-110;
154+
}
149155
}
150156

151157
&.col-1 {

src/shared/components/Settings/style.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ $checkbox-bg-selected: $tc-dark-blue;
4444
width: 100%;
4545
box-shadow: 0 1px 0 0 #f0f0f0;
4646

47-
@include md-to-lg {
47+
@include from-sm-to-lg {
4848
padding: 30px;
4949
}
5050

51-
@include xs-to-sm {
51+
@include upto-sm {
5252
padding: 10px;
5353
}
5454
}
@@ -64,7 +64,7 @@ $checkbox-bg-selected: $tc-dark-blue;
6464
display: flex;
6565
flex-direction: column;
6666

67-
@include xs-to-sm {
67+
@include upto-sm {
6868
display: none;
6969
}
7070

@@ -77,7 +77,7 @@ $checkbox-bg-selected: $tc-dark-blue;
7777
justify-content: flex-start;
7878

7979
.field {
80-
@include xs-to-sm {
80+
@include upto-sm {
8181
display: block;
8282
padding-bottom: 10px;
8383
}
@@ -329,15 +329,15 @@ $checkbox-bg-selected: $tc-dark-blue;
329329
-moz-user-select: none;
330330
-ms-user-select: none;
331331

332-
@include xs-to-sm {
332+
@include upto-sm {
333333
display: none;
334334
}
335335
}
336336

337337
.onoffswitch-mobile {
338338
display: none;
339339

340-
@include xs-to-sm {
340+
@include upto-sm {
341341
@include switch-transition;
342342

343343
display: block;

0 commit comments

Comments
 (0)