Fixed tab button style by allowing arbitrary nesting inside the <template> tag