Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4e7baef5 authored by escuriola's avatar escuriola
Browse files

OEL-1160: Fix header branding top right links. Make them responsive.

parent cb67343f
No related branches found
No related tags found
1 merge request!71OEL-1160: Header refactor.
......@@ -6,7 +6,6 @@
#}
{% set extra_attributes = create_attribute() %}
{% set extra_attributes = extra_attributes.addClass([
'nav-link',
'text-center'
]) %}
......@@ -15,7 +14,7 @@
<span class="d-block d-lg-inline-block">{{ title }}</span>
{% endset %}
<div class="oe-authentication">
<div class="oe-authentication nav-link">
{{ pattern('link', {
label: link_title,
path: content['#url']|render,
......
{% block content %}
<div class="language-switcher-block nav-link">
{{ content }}
</div>
{% endblock %}
......@@ -22,7 +22,6 @@
{% set extra_attributes = extra_attributes.setAttribute('data-bs-target', '#' ~ _language.link.target) %}
{% set extra_attributes = extra_attributes.addClass(
[
'nav-link',
'text-center'
]
) %}
......
......@@ -84,7 +84,7 @@ class MultilingualBlockTest extends KernelTestBase {
$block = $crawler->filter('div.language-switcher');
$this->assertCount(1, $block);
$link = $crawler->filter('a.nav-link');
$link = $crawler->filter('div.language-switcher > a');
$this->assertSame('English', trim($link->text()));
$this->assertSame('http://localhost/en/%3Cnone%3E', $link->attr('href'));
$title = $crawler->filter('h5#languageeModalLabel');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment