Commit 9cdcf0b
committed
Support nesting tabs in profiler pages
Only selecting direct `.tab` and `.tab-navigation` children of `.sf-tabs` allows us to support nesting tabs within tabs. For example:
<div class="sf-tabs">
<div class="tab">
<h3 class="tab-title">Example Parent</h3>
<div class="tab-content">
<h4>This section will have it's own tabs</h4>
<div class="sf-tabs">
<div class="tab">
<h3 class="tab-title">First nested</h3>
<div class="tab-content">
First tab of nested content
</div>
</div>
</div>
</div>
</div>
<div class="tab">
<h3 class="tab-title">Second tab</h3>
<div class="tab-content">
<h4>Standard tab</h4>
<p>
Lorem ipsum...
</p>
</div>
</div>
</div>
Without this scoping nested tabs are treated as part of the original tab list causing multiple issues.
Unfortunately browser support is limited for `:scope` (https://developer.mozilla.org/en-US/docs/Web/CSS/:scope#Browser_compatibility) – maybe an alternative method of scoping should be looked into?1 parent 0acf9e1 commit 9cdcf0b
File tree
1 file changed
+2
-2
lines changed- src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
0 commit comments