Skip to content

Commit

Permalink
fix: labels overlapping widgets
Browse files Browse the repository at this point in the history
Fix labels overlapping widgets for non design-react-kit widgets.
  • Loading branch information
bfabio committed Jan 31, 2024
1 parent 8f6520d commit 2905737
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/form/widgets/ComboBoxWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ComboBoxWidget = (props) => {

return (
<div className={className}>
<label className="control-label" htmlFor={id}>
<label className="control-label active text-muted" htmlFor={id}>
{props.label} {props.required ? "*" : ""}
</label>

Expand Down
2 changes: 1 addition & 1 deletion src/app/form/widgets/DateTimeReactWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const DateTimeReactWidget = (props: Props): JSX.Element => {

return (
<div className={className}>
<label className="control-label" htmlFor={id}>
<label className="control-label active text-muted" htmlFor={id}>
{props.label} {props.required ? "*" : ""}
</label>

Expand Down
2 changes: 1 addition & 1 deletion src/app/form/widgets/EditorWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const EditorWidget = (props) => {

return (
<div className={className}>
<label className="control-label" htmlFor={id}>
<label className="control-label active text-muted" htmlFor={id}>
{props.label} {props.schema.language ? `(${props.schema.lang})` : ""}{" "}
{props.required ? "*" : ""}
</label>
Expand Down
2 changes: 1 addition & 1 deletion src/app/form/widgets/TagWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const TagWidget = (props) => {

return (
<div className={className}>
<label className="control-label" htmlFor={id}>
<label className="control-label active text-muted" htmlFor={id}>
{props.label} {props.required ? "*" : ""}
</label>

Expand Down

0 comments on commit 2905737

Please sign in to comment.