Skip to content

Conversation

@davidornelas11
Copy link
Contributor

@davidornelas11 davidornelas11 commented Oct 21, 2025

Description

update header to new style

Checklist

  • Tests pass for relevant code changes

Important Reminders

Links

@davidornelas11 davidornelas11 requested a review from a team as a code owner October 21, 2025 18:58
@asu-jenkins-devops
Copy link
Collaborator

export const ASU_GRAY3 = "#747474";
export const ASU_GRAY4 = "#BFBFBF";
export const ASU_GRAY5 = "#d0d0d0";
export const GASU_GRAY6 = "#e8e8e8";
Copy link
Member

Choose a reason for hiding this comment

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

typo

* TODO: UDS-1612
*/
/** @type {HTMLInputElement | null} */
const searchInput = /** @type {HTMLInputElement} */ (form.elements.namedItem('q'));
Copy link
Member

Choose a reason for hiding this comment

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

dupe type?

>
<span
style={{
marginRight: "0.25rem",
Copy link
Member

Choose a reason for hiding this comment

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

move into styled components style?

hasInputValue={hasInputValue}
setHasInputValue={setHasInputValue}
SEARCH_GA_EVENT={SEARCH_GA_EVENT}
isMobile={false}
Copy link
Member

Choose a reason for hiding this comment

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

use isMobile

Comment on lines +40 to +53
// it("should open and close the universal search field", async () => {
// const searchButton = await component.findByTestId("search-button");
// fireEvent.click(searchButton);

const searchField = await component.findByPlaceholderText("Search asu.edu");
expect(searchField).toBeVisible();
// const searchField = await component.findByPlaceholderText("Search asu.edu");
// expect(searchField).toBeVisible();

const closeButton = await component.findByTestId("close-search");
fireEvent.click(closeButton);
// const closeButton = await component.findByTestId("close-search");
// fireEvent.click(closeButton);

const searchFieldAfterClose =
component.queryByPlaceholderText("Search asu.edu");
expect(searchFieldAfterClose).not.toBeInTheDocument();
});
// const searchFieldAfterClose =
// component.queryByPlaceholderText("Search asu.edu");
// expect(searchFieldAfterClose).not.toBeInTheDocument();
// });
Copy link
Member

Choose a reason for hiding this comment

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

Rewrite test


const Wrapper = styled.div`
background-color: #e8e8e8;
background-color: ${GASU_GRAY6};
Copy link
Member

Choose a reason for hiding this comment

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

typo being used!

@mlsamuelson
Copy link
Member

mlsamuelson commented Dec 12, 2025

Also, with datalayer - currently this PR is firing the datalayer for every character input into search. To match what we aligned to previously - it should only submit the data layer event when the search is submitted. Regresses UDS-1587

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.

4 participants