Skip to content

Commit

Permalink
fix: WDS Input widget bugs (#29241)
Browse files Browse the repository at this point in the history
Fixes #29091
Fixes #29086
Fixes #29088
  • Loading branch information
jsartisan authored Dec 1, 2023
1 parent fa01d10 commit fde6e2d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const _Field = (props: FieldProps, ref: FieldRef) => {
isRequired={isRequired}
necessityIndicator={necessityIndicator}
>
{label}
<span>{label}</span>
</Label>
)}
{contextualHelp}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
display: flex;
height: fit-content;
color: var(--color-fg);
max-width: 100%;
}

& [data-field-label] span {
webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 1;
text-overflow: ellipsis;
white-space: nowrap;
}

/**
Expand All @@ -32,6 +41,7 @@
width: var(--inner-spacing-2);
height: var(--inner-spacing-2);
color: var(--color-fg-negative);
margin-left: var(--inner-spacing-1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
flex-grow: 1;
color: var(--color-fg);
text-overflow: ellipsis;
width: 100%;

&:autofill,
&:autofill:hover,
Expand Down

0 comments on commit fde6e2d

Please sign in to comment.