Skip to content

Commit 28111ae

Browse files
author
Huan Li
committed
Ticket ##1491 - There is no 'Add link' button for adding a new external link on desktop
1 parent 8797d73 commit 28111ae

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

src/shared/components/Settings/Account/LinkedAccount/AddWebLink.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ Please enter a valid URL
190190
)
191191
}
192192
</div>
193+
<PrimaryButton onClick={this.onAddWebLinkButton} theme={{ button: 'button-add-link' }}>Add Link</PrimaryButton>
193194
</form>
194195
</div>
195196
</div>

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

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "~styles/mixins";
1+
@import "../../style";
22

33
.links {
44
border-bottom: none;
@@ -212,7 +212,7 @@
212212

213213
input.url {
214214
max-width: 100%;
215-
margin: 0;
215+
margin: 5px 0 0 0;
216216
border-radius: 4px;
217217

218218
@include placeholder {
@@ -868,3 +868,35 @@
868868
}
869869
}
870870
}
871+
872+
.buttons {
873+
874+
margin-top: auto;
875+
margin-bottom: auto;
876+
877+
.button-add-link {
878+
align-self: center;
879+
color: $tc-white;
880+
margin: 0;
881+
882+
div:first-child {
883+
margin-top: 0;
884+
}
885+
886+
button,
887+
a {
888+
@include roboto-medium;
889+
890+
height: 40px;
891+
font-size: 15px;
892+
font-weight: 500;
893+
margin: 0;
894+
padding: 0;
895+
width: 155px;
896+
}
897+
898+
@include xs-to-sm {
899+
display: none;
900+
}
901+
}
902+
}

0 commit comments

Comments
 (0)