Skip to content

UX: display search input and open modal on click #32508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 1, 2025
Merged

Conversation

lis2
Copy link
Contributor

@lis2 lis2 commented Apr 29, 2025

In this PR we hide search input.

#32485

However, search input is much more intuitive. Therefore, input was brought back and opens modal on click. In addition, search link was removed.

Demo:
https://github.com/user-attachments/assets/5b193fab-918e-4a4d-9fdd-97c92c534850

Mobile:
Screenshot 2025-04-30 at 3 00 47 pm

@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label Apr 29, 2025
@lis2 lis2 force-pushed the fake-input-admin-search branch 5 times, most recently from 82b50dc to 500cd40 Compare April 30, 2025 01:27
@@ -57,6 +58,10 @@ export default class AdminSidebarStateManager extends Service {
this.sidebarState.isForcingSidebar = false;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need it because importing when I import admin/components/modal/admin-search in admin-sidebar.js it was failing for non admin users.

@icon="magnifying-glass"
class="btn-transparent sidebar-search__icon"
/>
{{! template-lint-disable no-pointer-down-event-binding }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need mousedown because mouseup is too late. I want to prevent input to get focus, so when modal is closed, the user cannot type anything into this fake input.

Copy link
Contributor

@tgxworld tgxworld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments but nothing blocking.

lis2 and others added 11 commits May 1, 2025 08:19
@lis2 lis2 force-pushed the fake-input-admin-search branch from 0292973 to 1e58818 Compare May 1, 2025 00:19
@lis2 lis2 merged commit 07a4ffd into main May 1, 2025
16 checks passed
@lis2 lis2 deleted the fake-input-admin-search branch May 1, 2025 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n PRs which update English locale files or i18n related code
Development

Successfully merging this pull request may close these issues.

2 participants