File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed
code/Magento/Theme/view/frontend/layout
blank/Magento_Theme/web/css/source
luma/Magento_Theme/web/css/source Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 35
35
<block class =" Magento\Framework\View\Element\Template" name =" skip_to_content" template =" Magento_Theme::html/skip.phtml" >
36
36
<arguments >
37
37
<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 >
39
39
</arguments >
40
40
</block >
41
41
<block class =" Magento\Store\Block\Switcher" name =" store_language" as =" store_language" template =" switch/languages.phtml" />
Original file line number Diff line number Diff line change @@ -82,7 +82,20 @@ body {
82
82
}
83
83
84
84
.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
+ }
86
99
}
87
100
88
101
//
Original file line number Diff line number Diff line change 153
153
}
154
154
}
155
155
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
+ }
157
171
}
158
172
159
173
//
You can’t perform that action at this time.
0 commit comments