Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
127 changed files
with
636 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# а11y-hidden | ||
Обеспечивает доступность веб-контента людям с ограниченными возможностями. Предоставляет необходимые сведения об элементах интерфейса программам чтения с экрана, для альтернативного воспроизведения. | ||
|
||
Блок визуально скрыт и доступен только специальным приложениям. Является вспомогательным для других блоков и самостоятельно не используется. | ||
|
||
### Подключение блока | ||
`а11y-hidden` подключается примиксовыванием к другому блоку: | ||
|
||
```js | ||
({ | ||
block: 'info', | ||
mix: [{ block: 'a11y-hidden' }], | ||
content: 'Информация для людей с ограниченными возможностями.' // скрытое содержимое | ||
}) | ||
``` | ||
|
||
В HTML блока будет добавлен дополнительный класс `а11y-hidden` и текст для альтернативного воспроизведения. | ||
|
||
```html | ||
<div class="info a11y-hidden">Информация для людей с ограниченными возможностями.</div> | ||
``` | ||
|
||
Блок реализован посредством CSS: | ||
|
||
```css | ||
.a11y-hidden | ||
{ | ||
position: absolute; | ||
left: -32767px; | ||
} | ||
``` |
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,5 @@ | ||
.a11y-hidden | ||
{ | ||
position: absolute; | ||
left: -32767px; | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<span class="attach attach_theme_simple attach_size_l i-bem" data-bem="{"attach":{}}"><span class="button button_theme_islands button_size_m button__control i-bem" data-bem="{"button":{}}" role="button" type="button"><input class="attach__control" type="file" name="attach-name" tabindex="1"/></span><span class="attach__no-file">no file</span></span> | ||
<span class="attach attach_theme_simple attach_size_l i-bem" data-bem="{"attach":{}}"><span class="button button_theme_islands button_size_m button__control i-bem" data-bem="{"button":{}}" role="button" type="button"><input class="attach__control" type="file" name="attach-name" tabindex="1" aria-labelledby=""/></span><span class="attach__no-file" aria-hidden="true">no file</span></span> |
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 @@ | ||
<span class="attach attach_theme_simple attach_disabled i-bem" data-bem="{"attach":{}}"><span class="button button_theme_simple button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><input class="attach__control" type="file" disabled="disabled"/><span class="button__text">file</span></span><span class="attach__no-file">no file</span></span> | ||
<span class="attach attach_theme_simple attach_disabled i-bem" data-bem="{"attach":{}}"><span class="button button_theme_simple button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><input class="attach__control" type="file" disabled="disabled" aria-labelledby=""/><span class="button__text" id="">file</span></span><span class="attach__no-file" aria-hidden="true">no file</span></span> |
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,11 @@ | ||
({ | ||
block : 'button', | ||
mods : { focused : true, togglable : 'check' }, | ||
name : 'name', | ||
val : 'value', | ||
id : 'btn', | ||
text : 'button', | ||
tabIndex : 0, | ||
ariaLabel : 'label', | ||
ariaLabelledby : 'id' | ||
}); |
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 @@ | ||
<button class="button button_focused button_togglable_check button__control i-bem" data-bem="{"button":{"live":false}}" role="button" tabindex="0" type="button" id="btn" name="name" value="value" aria-label="label" aria-labelledby="id" aria-pressed="false"><span class="button__text">button</span></button> |
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/checkbox-group/checkbox-group.tmpl-specs/20-type_button_disabled_group.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 @@ | ||
<span class="checkbox-group checkbox-group_type_button checkbox-group_disabled control-group i-bem" data-bem="{"checkbox-group":{}}"><label class="checkbox checkbox_type_button checkbox_disabled i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><span class="button__text">first</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" disabled="disabled"/></label><label class="checkbox checkbox_type_button checkbox_disabled i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><i aria-hidden="true" class="icon icon_social_vk"></i><span class="button__text">VK</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" disabled="disabled"/></label></span> | ||
<span class="checkbox-group checkbox-group_type_button checkbox-group_disabled control-group i-bem" data-bem="{"checkbox-group":{}}"><label class="checkbox checkbox_type_button checkbox_disabled i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled" aria-pressed="false"><span class="button__text">first</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" disabled="disabled"/></label><label class="checkbox checkbox_type_button checkbox_disabled i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_disabled button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled" aria-pressed="false"><i aria-hidden="true" class="icon icon_social_vk"></i><span class="button__text">VK</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" disabled="disabled"/></label></span> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<label class="checkbox checkbox_type_button checkbox_checked checkbox_disabled checkbox_theme_islands checkbox_size_l i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_checked button_disabled button_theme_islands button_size_l button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><i aria-hidden="true" class="icon icon_social_twitter"></i><span class="button__text">type-button</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-name" value="checkbox-val" checked="checked" disabled="disabled"/></label> | ||
<label class="checkbox checkbox_type_button checkbox_checked checkbox_disabled checkbox_theme_islands checkbox_size_l i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_checked button_disabled button_theme_islands button_size_l button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled" aria-pressed="true"><i aria-hidden="true" class="icon icon_social_twitter"></i><span class="button__text">type-button</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-name" value="checkbox-val" checked="checked" disabled="disabled"/></label> |
9 changes: 9 additions & 0 deletions
9
common.blocks/checkbox/checkbox.tmpl-specs/40-a11y.bemjson.js
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,9 @@ | ||
({ | ||
block : 'checkbox', | ||
mods : { checked : true, disabled : true }, | ||
text : 'checkbox-text', | ||
name : 'checkbox-name', | ||
ariaLabel : 'label', | ||
ariaLabelledby : 'id', | ||
val : 'checkbox-val' | ||
}) |
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 @@ | ||
<label class="checkbox checkbox_checked checkbox_disabled i-bem" data-bem="{"checkbox":{}}"><span class="checkbox__box"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-name" value="checkbox-val" checked="checked" disabled="disabled" aria-label="label" aria-labelledby="" /></span>checkbox-text</label> |
10 changes: 10 additions & 0 deletions
10
common.blocks/checkbox/checkbox.tmpl-specs/50-type-button-a11y.bemjson.js
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,10 @@ | ||
({ | ||
block : 'checkbox', | ||
mods : { type : 'button', checked : true, disabled : true, theme : 'islands', size : 'l' }, | ||
name : 'checkbox-name', | ||
val : 'checkbox-val', | ||
text : 'type-button', | ||
icon : { block : 'icon', mods : { social : 'twitter' } }, | ||
ariaLabel : 'label', | ||
ariaLabelledby : 'id' | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/checkbox/checkbox.tmpl-specs/50-type-button-a11y.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<label class="checkbox checkbox_type_button checkbox_checked checkbox_disabled checkbox_theme_islands checkbox_size_l i-bem" data-bem="{"checkbox":{}}"><button class="button button_togglable_check button_checked button_disabled button_theme_islands button_size_l button__control i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled" aria-pressed="true" aria-label="label" aria-labelledby=""><i aria-hidden="true" class="icon icon_social_twitter"></i><span class="button__text">type-button</span></button><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-name" value="checkbox-val" checked="checked" disabled="disabled"/></label> |
Oops, something went wrong.