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

CON-3426: design changes ask button, edition switcher, subscribe button #1047

Merged
merged 12 commits into from
Jul 8, 2024

Conversation

danieleruiz
Copy link
Contributor

@danieleruiz danieleruiz commented Jun 14, 2024

Description

As part of search navbar redesign we need to change design and position of ask button, design of edition switcher and position of subscribe button,
Changes from o-header:

o-header changes PR: Financial-Times/origami#1725

Ticket

https://financialtimes.atlassian.net/browse/CON-3426

Screenshots

Before:

image

After:
image
image
image

@danieleruiz danieleruiz requested a review from a team as a code owner June 14, 2024 10:32
examples/kitchen-sink/__test__/integration.test.js Outdated Show resolved Hide resolved
packages/dotcom-ui-header/src/header.scss Outdated Show resolved Hide resolved
packages/dotcom-ui-header/src/header.scss Outdated Show resolved Hide resolved
packages/dotcom-ui-header/src/header.scss Outdated Show resolved Hide resolved
packages/dotcom-ui-header/src/header.scss Outdated Show resolved Hide resolved
packages/dotcom-ui-header/src/header.scss Outdated Show resolved Hide resolved
@metart43
Copy link
Member

Screenshot 2024-06-14 at 14 41 15

I don't know if this is an edge case for us to handle?

@danieleruiz danieleruiz requested a review from metart43 June 17, 2024 08:20
Copy link
Member

@metart43 metart43 left a comment

Choose a reason for hiding this comment

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

It look okay to me. Please, take a look at this suggestion #1047 (comment)

@notlee
Copy link
Contributor

notlee commented Jun 19, 2024

Just discussed with Daniel moving these changes to o-header, so non-pagekit projects can incorporate these changes for a consistent header across ft.com

@danieleruiz danieleruiz marked this pull request as draft June 19, 2024 11:14
@danieleruiz danieleruiz marked this pull request as ready for review July 8, 2024 08:40
@metart43 metart43 self-requested a review July 8, 2024 10:47
Copy link
Member

@metart43 metart43 left a comment

Choose a reason for hiding this comment

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

When I ran your bracnh locally I no longer see the search value inside the search input field. It collides with typeahead from the n-topic-seach. Can you please double check this behavior locally in your dev environment?

Screen.Recording.2024-07-08.at.11.46.43.mov

@danieleruiz danieleruiz requested a review from metart43 July 8, 2024 10:53
@metart43
Copy link
Member

metart43 commented Jul 8, 2024

When tabbing between items in the FT Drawer I get focus on the empty element that represent the FT Logo. This seems wrong

Screen.Recording.2024-07-08.at.11.52.06.mov

@@ -10,5 +10,6 @@ $system-code: 'page-kit-header' !default;

@import "src/header";

@import "n-topic-search/main";
Copy link
Member

Choose a reason for hiding this comment

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

issue: Please can we remove the duplicated line?

Suggested change
@import "n-topic-search/main";

Copy link
Member

Choose a reason for hiding this comment

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

Oh this was fixed! I was too late.

<span className="o-header__visually-hidden">Close side navigation menu</span>
</button>
<a className="o-header__drawer-tools-logo" href="/" data-trackable="logo">
<span className="o-header__visually-hidden">Financial Times</span>
</a>
{props.current && <p className="o-header__drawer-current-edition">{`${props.current.name} Edition`}</p>}
{editions && <EditionsSwitcher {...editions} />}
Copy link
Member

Choose a reason for hiding this comment

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

suggestion(non-blocking): I like in Origami that it is explicit about passing the current and other editions which is easier to read. We should keep these templates as close to the Origami template as possible. But we have plans to move away from this template in the future (probably in Q1 2025) so no need to do this.

@danieleruiz
Copy link
Contributor Author

When tabbing between items in the FT Drawer I get focus on the empty element that represent the FT Logo. This seems wrong

Screen.Recording.2024-07-08.at.11.52.06.mov

button removed

@danieleruiz danieleruiz merged commit 7b4a8da into main Jul 8, 2024
8 checks passed
@danieleruiz danieleruiz deleted the CON-3426-DesignChangesOnTopSearchBar branch July 8, 2024 14:23
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