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

[CC-33995] Keyboard accessible B2B #571

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

fedets-spryker
Copy link
Contributor

@fedets-spryker fedets-spryker commented Dec 18, 2024

@@ -2,7 +2,16 @@

{% block contentClass %}page-layout-main page-layout-main--catalog-page{% endblock %}

{% set catalogProductListId = 'catalog-product-list' %}
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to redefine it, as we have it in core. Please, recheck in all templates/components

Comment on lines +19 to +21
{% define attributes = {
navigationId: '',
} %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use header from core? and omit all this params redefining?

Comment on lines 10 to +29
{%- block class -%}{{ pageLayoutMainJsClassName }}__side-drawer-container{%- endblock -%}

{% set navigationId = 'main-navigation' %}
{% set mainContentId = 'main-content' %}

{% block body %}
{% include molecule('skip-link') with {
data: {
href: navigationId,
text: 'global.skip-to-navigation' | trans,
},
} only %}

{% include molecule('skip-link') with {
data: {
href: mainContentId,
text: 'global.skip-to-content' | trans,
},
} only %}

Copy link
Contributor

Choose a reason for hiding this comment

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

In order if we override only viewport block we can omit all these code duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants