-
Notifications
You must be signed in to change notification settings - Fork 9
feat(component-header-footer): update header to new style #1594
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
base: dev
Are you sure you want to change the base?
Conversation
|
Storybook deployed at https://unity-uds-staging.s3.us-west-2.amazonaws.com/pr-1594/index.html |
| export const ASU_GRAY3 = "#747474"; | ||
| export const ASU_GRAY4 = "#BFBFBF"; | ||
| export const ASU_GRAY5 = "#d0d0d0"; | ||
| export const GASU_GRAY6 = "#e8e8e8"; |
There was a problem hiding this comment.
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')); |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use isMobile
| // 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(); | ||
| // }); |
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo being used!
|
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 |
Description
update header to new style
Checklist
Important Reminders
Links