Skip to content

Commit

Permalink
Adjust textarea styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MajaZarkova committed May 30, 2024
1 parent 77393d0 commit 0b5b746
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/sit-onyx/src/components/OnyxTextarea/OnyxTextarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,20 @@ const handleInput = (event: Event) => {
:style="autosizeMinMaxStyles"
>
<label>
<div v-if="!props.hideLabel" class="onyx-textarea__label onyx-text--small">
<div :class="['onyx-textarea__header', !props.required ? requiredMarkerClass : undefined]">
<div
v-if="!props.hideLabel"
class="onyx-textarea__label onyx-text--small"
:class="[!props.required ? requiredMarkerClass : undefined]"
>
<div class="onyx-textarea__header">
<div class="onyx-truncation-ellipsis">{{ props.label }}</div>
<div :class="[props.required ? requiredMarkerClass : undefined]"></div>
<OnyxTooltip v-if="props.labelTooltip" open="hover" :text="props.labelTooltip">
<button :aria-label="t('infoTooltip')" class="onyx-textarea__tooltip-trigger">
<OnyxIcon :icon="circleInformation" color="neutral" size="12px" />
</button>
</OnyxTooltip>
<div class="onyx-textarea__optional">{{ t("optional") }}</div>
</div>
</div>

Expand Down Expand Up @@ -224,6 +229,7 @@ const handleInput = (event: Event) => {
display: flex;
// gap: var(--onyx-spacing-2xs);
max-width: 100%;
width: 100%;
}
&__info-message {
Expand Down

0 comments on commit 0b5b746

Please sign in to comment.