Page MenuHomePhabricator

Regression: Search button shown by default on page load
Closed, ResolvedPublic

Description

Comparing https://en.wikipedia.beta.wmflabs.org/wiki/Barack_Obama with https://en.wikipedia.org/wiki/Barack_Obama
The introduction of Codex means the search button is now displaying on page load.

Previously it only showed on focus.

HIding the button via display: none, would return to how it previously worked.

Screenshot 2023-06-13 at 7.31.23 AM.png (614×1 px, 138 KB)

Screenshot 2023-06-13 at 7.31.30 AM.png (862×1 px, 323 KB)

Event Timeline

Jdlrobson renamed this task from Regession: Search button shown by default on page load to Regerssion: Search button shown by default on page load .Jun 13 2023, 4:52 PM
Jdlrobson renamed this task from Regerssion: Search button shown by default on page load to Regression: Search button shown by default on page load .
Jdlrobson added a project: Regression.
Jdlrobson added subscribers: Sneha, bwang.

We discussed this in task sync today and @bwang has stated this is intentional. We want to check in with @Sneha about this before closing out the ticket.

This was a decision I made in T337966 in an attempt to sync the designs between the Codex search and the Vector search. This was also made because of the no js search experience; prior to T337966 the search icon is used as a button on the right (F37102658), however the Codex CSS typeahead search component already includes a search icon (F37102659). The introduction of a proper "Search" button avoids 2 icons for the no js case, and ensures a consistent experience for no js users. It also has an added benefit of simplifying our CSS, as it was pretty intuitive to use the icon as a button.

All that said, it wouldnt be difficult to make the "Search" button be hidden until focus for the CSS only typeahead search. This would be different behavior than Codex

It is good to have a search button always there for discoverability of search and also hiding and showing of button may be causing this UI issue as seen in the screenshot below. There is a tiny gap on the borders near where the button appears.

Screenshot 2023-06-13 at 1.39.37 PM.png (318×526 px, 7 KB)

I have asked the design system team to better understand the design rational for having a codex search component without a search button.

Update based on comment received from DS team... there is also another variant of search in codex component with search button always visible so we are not limited to just using the one without search button. We can go ahead with this change.

Jdlrobson claimed this task.
Jdlrobson added a subscriber: bmartinezcalvo.

Closing as acceptable based on above. @bmartinezcalvo please feel free to reopen this if we need to discuss more.