@@ -32,28 +32,28 @@ export default function tabbedCodeBlock() {
3232 const tabs = parent . children . slice ( firstTab , index + 1 ) ;
3333 const prefix = `code-${ tabs [ 0 ] . position ?. start ?. offset } ` ;
3434 elem . value = toHtml ( html `
35- < div >
35+ < div class =" tabbed-code-blocks " >
3636 < ul class ="nav nav-tabs " role ="tablist ">
3737 ${ tabs . map ( ( tab , index ) => {
3838 const tabId = `${ prefix } -${ tab . tabId } -tab` ;
3939 const paneId = `${ prefix } -${ tab . tabId } -pane` ;
4040 return html `
41- < li class ="nav-item " role ="presentation ">
41+ < li class ="nav-item text-nowrap " role ="presentation ">
4242 < button class ="nav-link ${ index === 0 ? 'active' : '' } " type ="button " role ="tab " id =${ tabId }
4343 data-bs-toggle ="tab" data-bs-target="#${ paneId } " aria-controls=${ paneId }
4444 aria-selected="${ index === 0 } "> ${ tab . tab }
4545 </ button >
4646 </ li > ` ;
4747 } ) }
4848 </ ul >
49- < div class ="tab-content bg-dark border-start border-end border-bottom rounded-bottom ">
49+ < div class ="tab-content border-start border-end border-bottom rounded-bottom mb-3 ">
5050 ${ tabs . map ( ( tab , index ) => {
5151 const tabId = `${ prefix } -${ tab . tabId } -tab` ;
5252 const paneId = `${ prefix } -${ tab . tabId } -pane` ;
5353 return html `
5454 < div class ="tab-pane fade ${ index === 0 ? 'show active' : '' } " id =${ paneId } role ="tabpanel"
5555 aria-labelledby=${ tabId } tabindex="0">
56- < pre class ="p-3 mb -0 "> < code class ="lang- ${ tab . lang } "> ${ tab . value } </ code > </ pre >
56+ < pre class ="m -0 "> < code class ="lang- ${ tab . lang } "> ${ tab . value } </ code > </ pre >
5757 </ div > ` ;
5858 } ) }
5959 </ div >
0 commit comments