Skip to content

Commit

Permalink
Revert "Removed flex from Label (#2136)" (#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen-murali-ind authored Mar 29, 2024
1 parent 3a43610 commit 0dd7c33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
21 changes: 11 additions & 10 deletions src/components/Label.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,22 @@ const Label = ({
const HelpIcon = icon || Help;

return (
<label className={classnames("neeto-ui-label", className)} {...otherProps}>
{children}
{required && (
<span aria-hidden className="neeto-ui-inline-flex">
*
</span>
<label
className={classnames(
"neeto-ui-label neeto-ui-flex neeto-ui-items-center",
className
)}
{...otherProps}
>
{children}
{required && <span aria-hidden>*</span>}
{helpIconProps && (
<Tooltip {...tooltipProps} disabled={!tooltipProps}>
<span
{...{ onClick }}
className={classnames(
"neeto-ui-label__help-icon-wrap neeto-ui-inline-flex",
{ [helpIconClassName]: helpIconClassName }
)}
className={classnames("neeto-ui-label__help-icon-wrap", {
[helpIconClassName]: helpIconClassName,
})}
>
<HelpIcon size={16} {...otherHelpIconProps} />
</span>
Expand Down
1 change: 0 additions & 1 deletion src/styles/components/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@

.neeto-ui-label {
margin-bottom: var(--neeto-ui-input-label-margin);
display: block;
}

.neeto-ui-input {
Expand Down

0 comments on commit 0dd7c33

Please sign in to comment.