TAMULib/tamu-library-components

Tabs Do Not Preserve All Projected Elements

Opened this issue · 0 comments

In order for content to display properly inside a tab, it must be wrapped inside a <div> or <span>. Previously this was not the case.

This tab content will lose 2 of the 3 p tags.

<tl-tabs>
      <template tab-content="TAB ONE">
          <p>1</p>
          <p>2</p>
          <p>3</p>
       </template>
</tl-tabs>

requiring this

<tl-tabs>
      <template tab-content="TAB ONE">
          <div>
            <p>1</p>
            <p>2</p>
            <p>3</p>
          </div>
       </template>
</tl-tabs>