Commit cca60b4
committed
feature symfony#58380 [WebProfilerBundle] Update the logic that minimizes the toolbar (javiereguiluz)
This PR was squashed before being merged into the 7.3 branch.
Discussion
----------
[WebProfilerBundle] Update the logic that minimizes the toolbar
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | -
| License | MIT
While working on fixing the accessibility issues of the toolbar (see symfony#58366) I saw the following error reported:
```
Accesskey "D" is used more than once
```
This prevents the feature from working properly. So, in this PR I changed everything about how the toolbar is minimized:
* Remove the "mini toolbar" (which is the button displayed when the toolbar is minimized)
* Remove the `.sf-toolbar-clearer` element which is no longer needed
* Transform the "hide" button into a "toggle" button to show/hide the toolbar
* Update the show/hied logic to use CSS classes instead of just `style: none/block`
For end users nothing changes. It looks the same as before.
#SymfonyHackday
Commits
-------
06ed516 [WebProfilerBundle] Update the logic that minimizes the toolbarFile tree
3 files changed
+50
-92
lines changed- src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler
3 files changed
+50
-92
lines changedLines changed: 32 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 49 | | |
80 | 50 | | |
81 | 51 | | |
82 | 52 | | |
83 | 53 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 54 | | |
89 | 55 | | |
90 | 56 | | |
| |||
127 | 93 | | |
128 | 94 | | |
129 | 95 | | |
130 | | - | |
| 96 | + | |
131 | 97 | | |
132 | 98 | | |
133 | 99 | | |
134 | 100 | | |
135 | | - | |
| 101 | + | |
136 | 102 | | |
137 | 103 | | |
138 | | - | |
| 104 | + | |
139 | 105 | | |
140 | 106 | | |
141 | 107 | | |
142 | 108 | | |
143 | 109 | | |
| 110 | + | |
144 | 111 | | |
145 | | - | |
| 112 | + | |
146 | 113 | | |
147 | 114 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
151 | 142 | | |
152 | 143 | | |
153 | 144 | | |
| |||
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 1 | | |
8 | | - | |
9 | 2 | | |
10 | 3 | | |
11 | 4 | | |
| |||
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
42 | | - | |
43 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
44 | 38 | | |
45 | 39 | | |
46 | | - | |
Lines changed: 15 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
453 | 454 | | |
454 | 455 | | |
455 | 456 | | |
456 | | - | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
462 | 461 | | |
463 | | - | |
464 | | - | |
465 | | - | |
| 462 | + | |
| 463 | + | |
466 | 464 | | |
467 | 465 | | |
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
471 | | - | |
| 469 | + | |
| 470 | + | |
472 | 471 | | |
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
476 | 475 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 476 | + | |
| 477 | + | |
482 | 478 | | |
483 | 479 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
510 | 483 | | |
511 | 484 | | |
512 | 485 | | |
| |||
655 | 628 | | |
656 | 629 | | |
657 | 630 | | |
| 631 | + | |
0 commit comments