Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI fixes: floater z-index + input and textarea fixes #260

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions @stellar/design-system/src/components/Floater/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@

// Floater open/close
&.trigger {
z-index: 2;

.Floater__content {
display: block;
}
Expand Down
7 changes: 6 additions & 1 deletion @stellar/design-system/src/components/Input/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
color: var(--Input-color-text);
border-radius: var(--Input-border-radius);
box-shadow: 0 0 0 var(--Input-box-shadow-size) var(--Input-box-shadow-color);
transition: border-color var(--sds-anim-transition-default),
transition:
border-color var(--sds-anim-transition-default),
box-shadow var(--sds-anim-transition-default);

padding-left: var(--Input-padding-horizontal);
Expand Down Expand Up @@ -104,6 +105,10 @@
border-color: var(--Input-color-border-hover);
}
}

& > * {
min-width: 0;
}
}

&__side-element {
Expand Down
6 changes: 4 additions & 2 deletions @stellar/design-system/src/components/Textarea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export const Textarea: React.FC<Props> = ({
autoComplete,
};

const val = (props.value || children) as string;

return (
<div className={`Textarea ${additionalClasses}`}>
{label && (
Expand All @@ -98,7 +100,7 @@ export const Textarea: React.FC<Props> = ({
cloneElement(customTextarea, { ...baseTextareaProps, ...props })
) : (
<textarea {...baseTextareaProps} {...props}>
{children}
{val}
</textarea>
)}

Expand All @@ -118,7 +120,7 @@ export const Textarea: React.FC<Props> = ({
)}
</div>
{hasCopyButton ? (
<InputCopyButton fieldSize={fieldSize} textToCopy={children} />
<InputCopyButton fieldSize={fieldSize} textToCopy={val} />
) : null}
</div>
)}
Expand Down
Loading