Skip to content

Commit c0bb58e

Browse files
committed
fix(TextArea): fix text overlapping with counter
1 parent 74e8c4c commit c0bb58e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

components/mdc/TextInput/TextArea.svelte

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@ const focus = async (node) => {
6161
label {
6262
width: 100%;
6363
}
64-
.counter {
65-
position: absolute;
66-
bottom: 0;
67-
right: 0;
68-
-webkit-font-smoothing: antialiased;
69-
font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
70-
font-size: var(--mdc-typography-caption-font-size, 0.75rem);
71-
font-weight: var(--mdc-typography-caption-font-weight, 400);
72-
}
7364
</style>
7465

7566
<label
@@ -102,7 +93,7 @@ label {
10293
on:blur={() => (hasBlurred = true)}
10394
/>
10495
{#if maxlength}
105-
<span class="counter gray mr-1 mb-4px" class:error>{value.length} / {maxlength}</span>
96+
<span class="mdc-text-field-character-counter" class:error>{value.length} / {maxlength}</span>
10697
{/if}
10798
<span class="mdc-notched-outline">
10899
<span class="mdc-notched-outline__leading" />

0 commit comments

Comments
 (0)