Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix(tag-add): Improved styling of button textcontent
Browse files Browse the repository at this point in the history
  • Loading branch information
rowa-audil authored and tomheller committed Jan 22, 2020
1 parent c314b1d commit b0104f2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 23 deletions.
3 changes: 2 additions & 1 deletion components/tag/src/tag-add/tag-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
(click)="open()"
#origin="cdkOverlayOrigin"
>
<dt-icon class="dt-tag-add-icon-button" name="plus-add"></dt-icon> Add Tag
<dt-icon class="dt-tag-add-icon-button" name="plus-add"></dt-icon>
<span class="dt-tag-add-button-text">Add Tag</span>
</button>
<ng-template
#overlay
Expand Down
59 changes: 37 additions & 22 deletions components/tag/src/tag-add/tag-add.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,49 @@
display: inline-block;

cursor: pointer;
}

.dt-tag-add-container {
position: relative;
display: inline-block;
}
.dt-tag-add-container {
position: relative;
}

.dt-tag-add-button {
height: 24px;
width: 90px;
font-size: 12px;
.dt-tag-add-button {
height: 24px;
width: 88px;
font-size: 12px;
display: inline-flex;

color: $turquoise-700;
background-color: #ffffff;
text-align: left;
color: $turquoise-700;
background-color: #ffffff;
text-align: left;
vertical-align: middle;

border: 1px solid $turquoise-600;
border-radius: 12px;
border: 1px solid $turquoise-600;
border-radius: 12px;

padding-right: 12px;
padding-left: 8px;
padding-top: 2px;

cursor: pointer;
&:active {
outline: none;
cursor: pointer;
&:active {
outline: none;
}

&:focus {
outline: 0;
}
}

.dt-tag-add-button-text {
width: 44px;
height: 16px;
vertical-align: middle;
line-height: 16px;
margin-left: 4px;
}
}

.dt-tag-add-overlay {
width: 320px;
height: 82px; // UX requested value: 78
height: 80px;
border: 1px solid $gray-700;
border-radius: 3px;
background-color: $gray-700;
Expand All @@ -62,8 +74,11 @@
width: 16px;
height: 16px;
vertical-align: text-top;
display: inline-block;
fill: #ffffff;

&.dt-tag-add-icon-button {
margin-left: 2px;
}
}

.dt-tag-add-icon-button {
Expand All @@ -77,7 +92,7 @@

.dt-tag-add-fields {
display: flex;
margin-top: 12px; // UX requested value: 16
margin-top: 12px;
}

.dt-tag-add-input {
Expand Down

0 comments on commit b0104f2

Please sign in to comment.