Skip to content

Commit effe272

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-32196' into UI
2 parents d33f01d + c661d26 commit effe272

File tree

3 files changed

+30
-3
lines changed
  • app

3 files changed

+30
-3
lines changed

app/code/Magento/Theme/view/frontend/layout/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<block class="Magento\Framework\View\Element\Template" name="skip_to_content" template="Magento_Theme::html/skip.phtml">
3636
<arguments>
3737
<argument name="target" xsi:type="string">contentarea</argument>
38-
<argument name="label" translate="true" xsi:type="string">Skip to content</argument>
38+
<argument name="label" translate="true" xsi:type="string">Skip to Content</argument>
3939
</arguments>
4040
</block>
4141
<block class="Magento\Store\Block\Switcher" name="store_language" as="store_language" template="switch/languages.phtml"/>

app/design/frontend/Magento/blank/Magento_Theme/web/css/source/module.less

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,20 @@ body {
8282
}
8383

8484
.action.skip {
85-
&:extend(.abs-visually-hidden all);
85+
&:not(:focus) {
86+
&:extend(.abs-visually-hidden all);
87+
}
88+
&:focus {
89+
position: absolute;
90+
z-index: 15;
91+
box-sizing: border-box;
92+
width: 100%;
93+
left: 0;
94+
top: 0;
95+
text-align: center;
96+
.css(background, @color-gray94);
97+
.css(padding, @indent-s-base);
98+
}
8699
}
87100

88101
//

app/design/frontend/Magento/luma/Magento_Theme/web/css/source/module.less

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,21 @@
153153
}
154154
}
155155

156-
.action.skip:extend(.abs-visually-hidden all) {
156+
.action.skip {
157+
&:not(:focus) {
158+
&:extend(.abs-visually-hidden all);
159+
}
160+
&:focus {
161+
position: absolute;
162+
z-index: 15;
163+
box-sizing: border-box;
164+
width: 100%;
165+
left: 0;
166+
top: 0;
167+
text-align: center;
168+
.css(background, @color-gray94);
169+
.css(padding, @indent-s-base);
170+
}
157171
}
158172

159173
//

0 commit comments

Comments
 (0)