Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function TextAreaInput(props: BudInputProps) {
text={props.label}
content={props.info}
required={props.required}
classNames="textarea-info-label"
/>
}
>
Expand Down
10 changes: 8 additions & 2 deletions services/budadmin/src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ textArea {
}

.label {
top: -10px;
top: -8px;
display: block;
font-weight: 300;
position: absolute;
Expand All @@ -1480,10 +1480,16 @@ textArea {
padding: 0 4px;
font-size: .75rem;
z-index: 1111;
line-height: 1;

.textarea-info-label {
height: auto !important;
background: var(--color-background) !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability, consider using inherit for the background color. This will ensure that the InfoLabel automatically picks up the background color from its parent .label element, even if the parent's background is changed in the future.

      background: inherit !important;

}
}

.ant-input {
padding: 0.75rem 1rem;
padding: 0.875rem 1rem;
background: transparent !important;
font-size: 0.75rem;
}
Expand Down