bug #14916 [WebProfilerBundle] Added tabindex="-1" to not interfer with normal UX (drAlberT)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #14916).
Discussion
----------
[WebProfilerBundle] Added tabindex="-1" to not interfer with normal UX
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
53cdb1a
[WebProfilerBundle] Added tabindex="-1" to not interfer with normal UX
This commit is contained in:
commit
6c9f86ba4b
@ -1,7 +1,7 @@
|
|||||||
<!-- START of Symfony Web Debug Toolbar -->
|
<!-- START of Symfony Web Debug Toolbar -->
|
||||||
{% if 'normal' != position %}
|
{% if 'normal' != position %}
|
||||||
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
|
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
|
||||||
<a href="javascript:void(0);" title="Show Symfony toolbar" onclick="
|
<a href="javascript:void(0);" title="Show Symfony toolbar" tabindex="-1" accesskey="D" onclick="
|
||||||
var elem = this.parentNode;
|
var elem = this.parentNode;
|
||||||
if (elem.style.display == 'none') {
|
if (elem.style.display == 'none') {
|
||||||
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'none';
|
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'none';
|
||||||
@ -36,7 +36,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if 'normal' != position %}
|
{% if 'normal' != position %}
|
||||||
<a class="hide-button" title="Close Toolbar" onclick="
|
<a class="hide-button" title="Close Toolbar" tabindex="-1" accesskey="D" onclick="
|
||||||
var p = this.parentNode;
|
var p = this.parentNode;
|
||||||
p.style.display = 'none';
|
p.style.display = 'none';
|
||||||
(p.previousElementSibling || p.previousSibling).style.display = 'none';
|
(p.previousElementSibling || p.previousSibling).style.display = 'none';
|
||||||
|
Reference in New Issue
Block a user