Skip to content

Commit fe8896d

Browse files
committed
fix: styles for manage BA link
ref issue #4269
1 parent 0104c7f commit fe8896d

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

src/projects/detail/components/BillingAccountField/index.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class BillingAccountField extends React.Component {
6767
<div className={styles.fieldName}>Choose a Billing Account</div>
6868
<Select
6969
placeholder={
70-
this.state.billingAccounts.length > 0
70+
this.state.billingAccounts.length > 0
7171
? 'Select billing account'
7272
: 'No Billing Account Available'
7373
}
@@ -76,14 +76,16 @@ class BillingAccountField extends React.Component {
7676
options={this.state.billingAccounts.map(this.mapOpts)}
7777
isDisabled={this.state.billingAccounts.length === 0}
7878
/>
79-
<a
80-
className={styles.manageBillingAccountLink}
81-
href={`${SALESFORCE_PROJECT_LEAD_LINK}${this.props.projectId}`}
82-
target="_blank"
83-
rel="noopener noreferrer"
84-
>
85-
Manage the billing account in Salesforce
86-
</a>
79+
<div className={styles.manageBillingAccountLinkWrapper}>
80+
<a
81+
className={styles.manageBillingAccountLink}
82+
href={`${SALESFORCE_PROJECT_LEAD_LINK}${this.props.projectId}`}
83+
target="_blank"
84+
rel="noopener noreferrer"
85+
>
86+
Manage the billing account in Salesforce
87+
</a>
88+
</div>
8789
</div>
8890
)
8991
}

src/projects/detail/components/BillingAccountField/styles.module.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
.fieldName {
55
margin-bottom: 10px;
66
}
7+
8+
.manageBillingAccountLinkWrapper {
9+
margin-top: 5px;
10+
}
11+
712
.manageBillingAccountLink {
8-
display: block;
913
color: $tc-dark-blue-110;
10-
margin-top: 10px;
14+
font-size: 12px;
15+
1116
&:hover {
12-
color: inherit;
17+
color: $tc-dark-blue-110;
1318
}
1419
}
1520
}

0 commit comments

Comments
 (0)