Skip to content

Commit

Permalink
style: Improve layout of label UI component (#2908)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikriemer authored May 31, 2024
1 parent 1a8c6d2 commit 82784c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<span
class="basic-label"
[ngClass]="small ? 'small-label' : ''"
[ngStyle]="{
background: labelBackground,
borderColor: 'color-mix(in srgb, ' + labelBackground + ' 70%, black)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@
.basic-label {
border-radius: 15px;
min-width: 50px;
height: 20px;
padding: 5px 7px;
border: 1px solid;
display: inline-block;
text-align: center;
}

.small-label {
font-size: 10pt;
padding: 2px 8px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class SpLabelComponent implements OnInit {
@Input()
labelText: string;

@Input()
small = false;

_labelBackground: string;

labelTextColor = '';
Expand Down

0 comments on commit 82784c3

Please sign in to comment.