Skip to content

Commit 7db1ade

Browse files
fix(serch-bar): design, chage icon color and input padding (#588)
Co-authored-by: Dmitriy Potychkin <dmitriy.traceable.ai> Co-authored-by: Anand Tiwary <[email protected]>
1 parent 6d1775f commit 7db1ade

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

projects/components/src/search-box/search-box.component.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
padding: 0 8px;
1212

1313
.icon {
14-
color: $gray-5;
14+
color: $gray-7;
1515
position: absolute;
1616
padding: 0 6px;
1717
cursor: pointer;
1818
}
1919

2020
.close {
21+
color: $gray-5;
2122
right: 0;
2223
}
2324

@@ -42,12 +43,12 @@
4243
width: 420px;
4344
background: transparent;
4445
border: 1px solid transparent;
45-
padding-left: 40px;
46+
padding-left: 28px;
4647
padding-right: 36px;
4748
border-radius: 4px;
4849

4950
&::placeholder {
50-
@include body-1-regular($gray-5);
51+
@include body-1-regular($gray-7);
5152
line-height: 30px;
5253
}
5354

projects/components/src/search-box/search-box.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { IconSize } from '../icon/icon-size';
1212
providers: [SubscriptionLifecycle],
1313
template: `
1414
<div class="ht-search-box" [class.focused]="this.isFocused">
15-
<ht-icon icon="${IconType.Search}" size="${IconSize.Medium}" class="icon" (click)="onSubmit()"></ht-icon>
15+
<ht-icon icon="${IconType.Search}" size="${IconSize.Small}" class="icon" (click)="onSubmit()"></ht-icon>
1616
<input
1717
class="input"
1818
type="text"

0 commit comments

Comments
 (0)