Skip to content

Commit 1d37fcc

Browse files
Add text-raise class to FieldLabels (#2799)
* Add text-raise class to FieldLabels * use text-raise on form meta label on auto restart settings * one more: metadata source on idp create --------- Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>
1 parent 1d5f223 commit 1d37fcc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/forms/idp/shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function MetadataSourceField({
4141
} = useController({ control, name: 'idpMetadataSource' })
4242
return (
4343
<fieldset>
44-
<legend id="metadata-source-legend" className="mb-2 text-sans-md">
44+
<legend id="metadata-source-legend" className="mb-2 text-sans-md text-raise">
4545
Metadata source
4646
</legend>
4747
{/* TODO: probably need some help text here */}

app/pages/project/instances/AutoRestartCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ type FormMetaProps = {
156156

157157
const FormMeta = ({ label, tip, children }: FormMetaProps) => (
158158
<div>
159-
<div className="mb-2 flex items-center gap-1 border-b pb-2 text-sans-md border-secondary">
159+
<div className="mb-2 flex items-center gap-1 border-b pb-2 text-sans-md text-raise border-secondary">
160160
<div>{label}</div>
161161
{tip && <TipIcon>{tip}</TipIcon>}
162162
</div>

app/ui/lib/FieldLabel.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export const FieldLabel = ({
2727
const Component = as || 'label'
2828
return (
2929
<div className={cn(className, 'flex h-4 items-center space-x-2')}>
30-
<Component id={id} className="flex items-center text-sans-md" htmlFor={htmlFor}>
30+
<Component
31+
id={id}
32+
className="flex items-center text-sans-md text-raise"
33+
htmlFor={htmlFor}
34+
>
3135
{children}
3236
{optional && (
3337
// Announcing this optional text is unnecessary as the required attribute on the

0 commit comments

Comments
 (0)