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

EWPP-3912: Adapt site and page header templates. #1379

Merged
merged 6 commits into from
Jan 31, 2024

Conversation

22Alexandra
Copy link
Contributor

No description provided.

@22Alexandra 22Alexandra changed the base branch from EPIC-EWPP-3676-ECL-v4 to EWPP-3882 January 21, 2024 12:20
@22Alexandra 22Alexandra force-pushed the EWPP-3912 branch 2 times, most recently from 16ac324 to 2e980e6 Compare January 21, 2024 13:55
Base automatically changed from EWPP-3882 to EPIC-EWPP-3676-ECL-v4 January 23, 2024 11:57
$icon = $language_switcher_button->find('css', "span.ecl-site-header__language-icon svg.ecl-icon.ecl-icon--s.ecl-site-header__icon[focusable='false'][aria-hidden='true']");
$this->assertEquals('<use xlink:href="/build/themes/custom/oe_theme/dist/' . $component . '/images/icons/sprites/icons.svg#global" xmlns:xlink="http://www.w3.org/1999/xlink"></use>', $icon->getHtml());
$this->assertEquals('English', $language_switcher_button->getText());
file_put_contents('test.html', $this->getSession()->getPage()->getOuterHtml());
Copy link
Member

Choose a reason for hiding this comment

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

Debug code to be removed.

Copy link
Member

Choose a reason for hiding this comment

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

@22Alexandra yep, let's remove this if not needed.

label: 'Close'
icon_name: 'close-filled'
icon_size: 'm'
hide_label: false
Copy link
Member

Choose a reason for hiding this comment

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

This changes the API of this particular pattern, could we, instead, hide the change in the pattern implementation, so that preview stays Close and then we add that array in the pattern itself. The button is just the close button anyway, we can only offer the possibility to change its label.

icon: {
path: ecl_icon_path,
name: close.icon_name,
size: close.icon_size,
Copy link
Member

Choose a reason for hiding this comment

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

See comment above, here just hard code values for the close button and leave only the label to be customizable.

$icon = $language_switcher_button->find('css', "span.ecl-site-header__language-icon svg.ecl-icon.ecl-icon--s.ecl-site-header__icon[focusable='false'][aria-hidden='true']");
$this->assertEquals('<use xlink:href="/build/themes/custom/oe_theme/dist/' . $component . '/images/icons/sprites/icons.svg#global" xmlns:xlink="http://www.w3.org/1999/xlink"></use>', $icon->getHtml());
$this->assertEquals('English', $language_switcher_button->getText());
file_put_contents('test.html', $this->getSession()->getPage()->getOuterHtml());
Copy link
Member

Choose a reason for hiding this comment

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

@22Alexandra yep, let's remove this if not needed.

ademarco
ademarco previously approved these changes Jan 30, 2024
@22Alexandra 22Alexandra merged commit e8df798 into EPIC-EWPP-3676-ECL-v4 Jan 31, 2024
1 check passed
@22Alexandra 22Alexandra deleted the EWPP-3912 branch January 31, 2024 09:12
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.

3 participants