-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
d9c5468
to
70da306
Compare
b8d97b5
to
fb717de
Compare
16ac324
to
2e980e6
Compare
6e50af1
to
0406504
Compare
0f442b0
to
85c4c64
Compare
$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()); |
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.
Debug code to be removed.
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.
@22Alexandra yep, let's remove this if not needed.
85c4c64
to
56b29e3
Compare
label: 'Close' | ||
icon_name: 'close-filled' | ||
icon_size: 'm' | ||
hide_label: 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.
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, |
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.
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()); |
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.
@22Alexandra yep, let's remove this if not needed.
bb06dfc
to
5ad58e8
Compare
No description provided.