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

OEL-788: Update local task theming #146

Merged
merged 7 commits into from
Jan 10, 2022
Merged

OEL-788: Update local task theming #146

merged 7 commits into from
Jan 10, 2022

Conversation

drishu
Copy link
Contributor

@drishu drishu commented Dec 27, 2021

No description provided.

templates/patterns/nav/nav.ui_patterns.yml Outdated Show resolved Hide resolved
tests/src/Kernel/MenuLocalTasksTest.php Outdated Show resolved Hide resolved
escuriola
escuriola previously approved these changes Jan 7, 2022
includes/menu.inc Show resolved Hide resolved
{% if primary %}
<h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2>
{{ _self.menu_local_tasks(primary_links) }}
{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, consider if a blank line here can add readibility.

$this->assertCount(1, $active);
$this->assertEquals('Third link - Active', trim($active->text()));

// Assert regular link are ordered by weight.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Assert regular link are ordered by weight.
// Assert regular links are ordered by weight.

$html = $this->renderRoot($render);
$crawler = new Crawler($html);

$actual = $crawler->filter('nav.nav-tabs');
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, change name $actual to $nav or $navigation. It makes easier to understand at first glance.

@drishu drishu merged commit 0b3b480 into 1.x Jan 10, 2022
@drishu drishu deleted the OEL-788 branch January 10, 2022 07:04
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.

None yet

3 participants