Skip to content

Commit

Permalink
fix: searchbar ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy committed Nov 10, 2022
1 parent 17a171d commit eea6268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions packages/quark/src/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,10 @@ class QuarkSearch extends QuarkElement {
)}
</div>
</div>
{!this.hideaction && (
<slot name="action">
<div class="quark-search-action" onClick={this.actionEvent}>
{this.actiontext}
</div>
</slot>
{!this.hideaction && this.actiontext && (
<div class="quark-search-action" onClick={this.actionEvent}>
<slot name="action">{this.actiontext}</slot>
</div>
)}
</div>
);
Expand Down
3 changes: 1 addition & 2 deletions packages/quark/src/search/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ input::-webkit-search-cancel-button {
}

.quark-search-action {
margin-left: 16px;
margin-left: var(--search-action-text-margin-left, 16px);
font-weight: 400;
color: var(--search-action-text-color, quark-formBaseColor);
font-size: var(--search-action-font-size, quark-fontSizeCaption);
line-height: 32px;
cursor: pointer;
}

.quark-search-dark {
Expand Down

0 comments on commit eea6268

Please sign in to comment.