You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
0 commit comments