Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/597 form label #827

Merged
merged 9 commits into from
Jan 24, 2024
12 changes: 0 additions & 12 deletions packages/ui-library/src/foundation/semantic-tokens/form.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,14 @@ export const { tokenizedLight: formLight, tokenizedDark: formDark } = renderThem
}

&.sm {
padding: ${SM.LabelSlot.Padding};
font-weight: ${FormLabel.Label.Typography.SM.fontWeight};
font-size: ${FormLabel.Label.Typography.SM.fontSize};
font-family: ${FormLabel.Label.Typography.SM.fontFamily}, sans-serif;
line-height: ${FormLabel.Label.Typography.SM.lineHeight};
gap: ${FormLabel.Container.ItemSpacing.SM};
__FIX__color: ${FormLabel.Label.TextColor.Rest};

&.__FIX__error {
color: ${FormLabel.Label.TextColor.Error};
}
}

&.md {
padding: ${MD.LabelSlot.Padding};
font-weight: ${FormLabel.Label.Typography.MD.fontWeight};
font-size: ${FormLabel.Label.Typography.MD.fontSize};
font-family: ${FormLabel.Label.Typography.MD.fontFamily}, sans-serif;
Expand All @@ -302,16 +295,11 @@ export const { tokenizedLight: formLight, tokenizedDark: formDark } = renderThem
}

&.lg {
padding: ${LG.LabelSlot.Padding};
font-weight: ${FormLabel.Label.Typography.LG.fontWeight};
font-size: ${FormLabel.Label.Typography.LG.fontSize};
font-family: ${FormLabel.Label.Typography.LG.fontFamily}, sans-serif;
line-height: ${FormLabel.Label.Typography.LG.lineHeight};
gap: ${FormLabel.Container.ItemSpacing.LG};

&.__FIX__error {
color: ${FormLabel.Label.TextColor.Error};
}
}
}

Expand Down
Loading