Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
popup: split own functionality into target modifiers (close #968)
- Loading branch information
Showing
48 changed files
with
1,201 additions
and
880 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
2 changes: 1 addition & 1 deletion
2
common.blocks/dropdown/dropdown.tmpl-specs/10-default_link.html
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="dropdown dropdown_switcher_link dropdown_theme_normal dropdown_disabled i-bem" data-bem="{"dropdown":{}}"><span class="link link_pseudo link_theme_normal link_disabled link__control i-bem" data-bem="{"link":{}}">link</span><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{}}">bemjson</div></div> | ||
<div class="dropdown dropdown_switcher_link dropdown_theme_normal dropdown_disabled i-bem" data-bem="{"dropdown":{}}"><span class="link link_pseudo link_theme_normal link_disabled link__control i-bem" data-bem="{"link":{}}">link</span><div class="popup popup_theme_normal popup_autoclosable popup_target_anchor i-bem" data-bem="{"popup":{}}">bemjson</div></div> |
2 changes: 1 addition & 1 deletion
2
common.blocks/dropdown/dropdown.tmpl-specs/20-default_button.html
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="dropdown dropdown_switcher_button dropdown_theme_normal dropdown_size_m dropdown_disabled i-bem" data-bem="{"dropdown":{}}"><button class="button button_size_m button_theme_normal button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><span class="button__text">button</span></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{}}">bemjson</div></div> | ||
<div class="dropdown dropdown_switcher_button dropdown_theme_normal dropdown_size_m dropdown_disabled i-bem" data-bem="{"dropdown":{}}"><button class="button button_size_m button_theme_normal button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><span class="button__text">button</span></button><div class="popup popup_theme_normal popup_autoclosable popup_target_anchor i-bem" data-bem="{"popup":{}}">bemjson</div></div> |
2 changes: 1 addition & 1 deletion
2
common.blocks/dropdown/dropdown.tmpl-specs/30-switcher_link_custom_popup.html
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="dropdown dropdown_switcher_link i-bem" data-bem="{"dropdown":{}}"><a class="link link_theme_normal link__control i-bem" data-bem="{"link":{}}" tabindex="0">link</a><div class="popup popup_autoclosable i-bem" data-bem="{"popup":{}}"><a class="link link_theme_normal link__control i-bem" data-bem="{"link":{}}" tabindex="0">link</a></div></div> | ||
<div class="dropdown dropdown_switcher_link i-bem" data-bem="{"dropdown":{}}"><a class="link link_theme_normal link__control i-bem" data-bem="{"link":{}}" tabindex="0">link</a><div class="popup popup_autoclosable popup_target_anchor i-bem" data-bem="{"popup":{}}"><a class="link link_theme_normal link__control i-bem" data-bem="{"link":{}}" tabindex="0">link</a></div></div> |
2 changes: 1 addition & 1 deletion
2
common.blocks/dropdown/dropdown.tmpl-specs/40-switcher_button_block_popup.html
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="dropdown dropdown_switcher_button i-bem" data-bem="{"dropdown":{}}"><button class="button button_theme_normal button_size_m button__control i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">button</span></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{}}">custom link</div></div> | ||
<div class="dropdown dropdown_switcher_button i-bem" data-bem="{"dropdown":{}}"><button class="button button_theme_normal button_size_m button__control i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">button</span></button><div class="popup popup_theme_normal popup_autoclosable popup_target_anchor i-bem" data-bem="{"popup":{}}">custom link</div></div> |
2 changes: 1 addition & 1 deletion
2
common.blocks/dropdown/dropdown.tmpl-specs/50-switcher_array.html
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="dropdown i-bem" data-bem="{"dropdown":{}}"><button class="button button__control i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">button</span></button><a class="link link__control i-bem" data-bem="{"link":{}}" tabindex="0">link</a><div class="popup popup_autoclosable i-bem" data-bem="{"popup":{}}">popup</div></div> | ||
<div class="dropdown i-bem" data-bem="{"dropdown":{}}"><button class="button button__control i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">button</span></button><a class="link link__control i-bem" data-bem="{"link":{}}" tabindex="0">link</a><div class="popup popup_autoclosable popup_target_anchor i-bem" data-bem="{"popup":{}}">popup</div></div> |
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
({ | ||
[{ | ||
shouldDeps : [ | ||
{ mods : { target : 'anchor' } }, // should be removed after bem-pr and enb-specs will fix depsByTech | ||
{ block : 'jquery', elems : { elem : 'event', mods : { type : 'pointer' } } }, | ||
{ block : 'keyboard', elem : 'codes' }, | ||
'ua', | ||
'dom' | ||
] | ||
}) | ||
}, | ||
{ | ||
tech : 'spec.js', | ||
shouldDeps : { tech : 'js', mods : { target : 'anchor' } } | ||
}] |
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
Oops, something went wrong.