refactor: show search icon instead of input
This commit is contained in:
parent
2cc84a7b36
commit
508b6da569
3 changed files with 3 additions and 13 deletions
|
|
@ -99,9 +99,7 @@ context("Form", () => {
|
|||
cy.new_form("User");
|
||||
|
||||
jump_to_field("Location"); // this is in collapsed section
|
||||
cy.wait(500);
|
||||
type_value("Bermuda");
|
||||
cy.wait(500);
|
||||
|
||||
cy.get_field("location").should("have.value", "Bermuda");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@
|
|||
>
|
||||
<span class="search-icon">
|
||||
<svg class="icon icon-sm"><use href="#icon-search"></use></svg>
|
||||
{{ __("Search") }}
|
||||
</span>
|
||||
<span>{%= frappe.utils.is_mac() ? '⌘ + K' : 'Ctrl + K' %}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -48,10 +48,7 @@
|
|||
}
|
||||
|
||||
.search-bar {
|
||||
flex: 1;
|
||||
max-width: 300px;
|
||||
margin: 0 var(--margin-md);
|
||||
|
||||
svg {
|
||||
stroke: var(--text-light);
|
||||
margin-bottom: 2px;
|
||||
|
|
@ -81,13 +78,10 @@
|
|||
color: var(--text-light);
|
||||
}
|
||||
}
|
||||
.navbar-modal-search-mobile {
|
||||
.search-icon {
|
||||
background-color: var(--control-bg);
|
||||
border-radius: var(--border-radius-sm);
|
||||
padding: 6px 10px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-radius: 16px;
|
||||
padding: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue