Skip to content

Commit dcc1c85

Browse files
author
Natalia Momotenko
committed
MAGETWO-32196: Visual style for 'skip to content' attribute
1 parent 4f875ff commit dcc1c85

File tree

2 files changed

+27
-2
lines changed
  • app/design/frontend/Magento

2 files changed

+27
-2
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,19 @@ 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+
box-sizing: border-box;
91+
width: 100%;
92+
left: 0;
93+
top: 0;
94+
text-align: center;
95+
.css(background, @color-gray94);
96+
.css(padding, @indent-s-base);
97+
}
8698
}
8799

88100
//

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,20 @@
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+
box-sizing: border-box;
163+
width: 100%;
164+
left: 0;
165+
top: 0;
166+
text-align: center;
167+
.css(background, @color-gray94);
168+
.css(padding, @indent-s-base);
169+
}
157170
}
158171

159172
//

0 commit comments

Comments
 (0)