Skip to content

Commit 2daea20

Browse files
committed
fix: added column labels
1 parent d165d3f commit 2daea20

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/module/src/FieldBuilder/FieldBuilder.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,24 @@ export const FieldBuilder: FunctionComponent<FieldBuilderProps> = ({
228228
{liveRegionMessage}
229229
</div>
230230

231+
{/* Render the column headers */}
232+
<Grid hasGutter className="pf-v6-u-mb-md">
233+
<GridItem span={secondColumnLabel ? 5 : 10}>
234+
<span className="pf-v6-c-form__label-text">
235+
{firstColumnLabel}
236+
</span>
237+
</GridItem>
238+
{secondColumnLabel && (
239+
<GridItem span={5}>
240+
<span className="pf-v6-c-form__label-text">
241+
{secondColumnLabel}
242+
</span>
243+
</GridItem>
244+
)}
245+
{/* Empty GridItem to align with the remove button column */}
246+
<GridItem span={2} />
247+
</Grid>
248+
231249
{/* Render all the dynamic rows of fields */}
232250
{renderRows()}
233251

0 commit comments

Comments
 (0)