Skip to content

Commit

Permalink
reduce font-weight on FormControl labels within a ControlGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Nov 27, 2024
1 parent d65b102 commit 4b9b5f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/forms/ControlGroup/ControlGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const _ControlGroup = forwardRef<HTMLFieldSetElement, ControlGroupProps>(({class
<ControlGroupContext.Provider value={{id: uniqueId}}>
<fieldset
ref={ref}
className={clsx(styles.ControlGroup__container, className)}
className={clsx('ControlGroup', styles.ControlGroup__container, className)}
aria-describedby={describedBy}
{...props}
/>
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/forms/FormControl/FormControl.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
width: 100%;
}

:global(.ControlGroup) .FormControl-label {
font-weight: var(--base-text-weight-medium);
}

.FormControl-control--radio {
margin: 2px 0 0;
}
Expand Down

0 comments on commit 4b9b5f4

Please sign in to comment.