1
0
Fork 0
mirror of synced 2024-07-11 17:26:01 +12:00

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

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>