forked from bigcommerce/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storefront): BCTHEME-1836 Storefront nav for switching between c…
…ountry-specific websites (step 1) (bigcommerce#2453) Co-authored-by: “bc-yevhenii-buliuk” <“[email protected]”>
- Loading branch information
1 parent
91dfa09
commit a8bb619
Showing
10 changed files
with
125 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{#if theme_settings.channels.length '>' 1}} | ||
<a href="#" | ||
class="navPages-action has-subMenu" | ||
data-collapsible="navPages-channel" | ||
aria-controls="navPages-channel" | ||
aria-expanded="false" | ||
aria-label=" | ||
{{#each theme_settings.channels}} | ||
{{#if is_active}} | ||
{{lang 'common.channel' code=code}} | ||
{{/if}} | ||
{{/each}} | ||
" | ||
> | ||
{{#each theme_settings.channels}} | ||
{{#if is_active}} | ||
{{lang 'common.channel' code=code}} | ||
{{/if}} | ||
{{/each}} | ||
<i class="icon navPages-action-moreIcon" aria-hidden="true"> | ||
<svg> | ||
<use href="#icon-chevron-down"></use> | ||
</svg> | ||
</i> | ||
</a> | ||
<div class="navPage-subMenu" id="navPages-channel" aria-hidden="true" tabindex="-1"> | ||
<ul class="navPage-subMenu-list"> | ||
{{#each theme_settings.channels}} | ||
<li class="navPage-subMenu-item"> | ||
<a href="{{{switch_url}}}" | ||
class="navPage-subMenu-action navPages-action" | ||
aria-label="{{name}}" | ||
data-channel-code="{{{code}}}" | ||
data-warning="{{lang 'common.channel_switch_warning'}}" | ||
> | ||
{{name}} | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{#if theme_settings.channels.length '>' 1}} | ||
<ul class="navUser-section"> | ||
<li class="navUser-item"> | ||
<a href="#" | ||
class="navUser-action navUser-action--channelSelector has-dropdown" | ||
data-dropdown="channelSelection" | ||
aria-controls="channelSelection" | ||
aria-expanded="false" | ||
> | ||
{{#each theme_settings.channels}} | ||
{{#if is_active}} | ||
{{lang 'common.channel' code=code}} | ||
{{/if}} | ||
{{/each}} | ||
<i class="icon" aria-hidden="true"> | ||
<svg> | ||
<use href="#icon-chevron-down"/> | ||
</svg> | ||
</i> | ||
</a> | ||
<ul class="dropdown-menu" id="channelSelection" data-dropdown-content aria-hidden="true" tabindex="-1"> | ||
{{#each theme_settings.channels}} | ||
<li class="dropdown-menu-item"> | ||
<a href="{{{switch_url}}}" data-channel-code="{{{code}}}" data-warning="{{lang 'common.channel_switch_warning'}}"> | ||
{{#if is_active}} | ||
<strong>{{name}}</strong> | ||
{{else}} | ||
{{name}} | ||
{{/if}} | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</li> | ||
</ul> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters