Change Text component display to inline-block to text-transform works
This commit is contained in:
parent
cd00817481
commit
e871b45a28
1 changed files with 6 additions and 4 deletions
|
@ -1,11 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { buildStyle } from "./buildStyle"
|
|
||||||
|
|
||||||
export let text = ""
|
export let text = ""
|
||||||
export let className = ""
|
export let className = ""
|
||||||
|
|
||||||
export let type = ""
|
export let type = ""
|
||||||
|
|
||||||
export let _bb
|
export let _bb
|
||||||
|
|
||||||
const isTag = tag => type === tag
|
const isTag = tag => type === tag
|
||||||
|
@ -34,3 +30,9 @@
|
||||||
{:else if isTag('sup')}
|
{:else if isTag('sup')}
|
||||||
<sup class={className}>{text}</sup>
|
<sup class={className}>{text}</sup>
|
||||||
{:else}<span>{text}</span>{/if}
|
{:else}<span>{text}</span>{/if}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue