Skip to content
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

Usability issue with search on main page #412 #429

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GarvitMahhesh
Copy link
Contributor

Fixed an issue on the main page where the cursor wouldn't focus on the input field when clicking the search button. Added focus functionality to ensure the cursor automatically appears in the input field.

@GarvitMahhesh
Copy link
Contributor Author

check this if the focus is working poroperly , thanks !!

@bproffitt
Copy link
Contributor

Is there a preview page somewhere we can see this on? Thanks! Also @Paul-TT can you review the change?

@GarvitMahhesh
Copy link
Contributor Author

I don't have a preview page, but I just added focus on the input. Let @Paul-TT check if it is working properly without interfering with anything.

@Paul-TT
Copy link
Collaborator

Paul-TT commented Nov 15, 2024

Hi @GarvitMahhesh and @bproffitt . I'll check this out this morning.

@Paul-TT
Copy link
Collaborator

Paul-TT commented Nov 15, 2024

@bproffitt @GarvitMahhesh I pulled the code into a staging branch. The focus doesn't seem to be working. Were you able to test it locally?

Also, it looks like the style tags were removed around the styles.css include which is causing the styles to print on the page.

You can see the it staged here. https://www-paulfocustest.staged.apache.org/

{% include "styles.css" %}
</style>
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing the style marker makes the styles display as text.

@sebbASF
Copy link
Contributor

sebbASF commented Nov 15, 2024

There are several spurious changes which make it hard to see what actually needs to be changed.

@sebbASF
Copy link
Contributor

sebbASF commented Nov 16, 2024

Also it looks like the 'searchButton' variable does not correspond with the actual search button, so the click event is applied to the wrong item.

@sebbASF sebbASF marked this pull request as draft December 19, 2024 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants