Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Remove labels for existing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad committed Feb 28, 2024
1 parent 17235c0 commit 531b8c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/SpruceForm/Widgets/LeafyGreenWidgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ export const LeafyGreenRadio: React.FC<EnumSpruceWidgetProps> = ({
} = options;
return (
<ElementWrapper css={elementWrapperCSS}>
<LabelContainer>
<Label htmlFor={id}>{label}</Label>
</LabelContainer>
{label && (
<LabelContainer>
<Label htmlFor={id}>{label}</Label>
</LabelContainer>
)}
<RadioGroup
data-cy={dataCy}
id={id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ exports[`Snapshot Tests SpruceForm.stories Example2 1`] = `
<div
aria-label="radio-group-"
class="leafygreen-ui-14o8ny9"
id="root_reprovisionMethod"
role="group"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export const getFormSchema = (
properties: {
mergeQueue: {
type: "string" as "string",
title: "",
oneOf: [
{
type: "string" as "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const getFormSchema = (
properties: {
projectHealthView: {
type: "string" as "string",
title: "",
oneOf: [
{
type: "string" as "string",
Expand Down

0 comments on commit 531b8c0

Please sign in to comment.