Change Text component display to inline-block to text-transform works

This commit is contained in:
Andrew Kingston 2020-10-16 08:34:17 +01:00
parent cd00817481
commit e871b45a28
1 changed files with 6 additions and 4 deletions

View File

@ -1,11 +1,7 @@
<script>
import { buildStyle } from "./buildStyle"
export let text = ""
export let className = ""
export let type = ""
export let _bb
const isTag = tag => type === tag
@ -34,3 +30,9 @@
{:else if isTag('sup')}
<sup class={className}>{text}</sup>
{:else}<span>{text}</span>{/if}
<style>
span {
display: inline-block;
}
</style>