Repository navigation
fix(Form): show the required mark on fields without a label - #253
Conversation
atakanbayrak
left a comment
There was a problem hiding this comment.
After conflict resolution I will be here.
|
Claude finished @aktasmehmet's task in 36s —— View job Review of PR #253: required mark on fields without a labelI read the diff against I did not run tests, lint or the build, and I did not check the visuals in Storybook. This is a read-only review of the diff. Findings
SummaryThe approach is reasonable and has no blockers. Findings 5 and 6 are the ones to address before merge. Items 2 and 7 are worth a quick fix or check. |
|
Size Change: +485 B (+0.17%) Total Size: 284 kB 📦 View Changed
ℹ️ View Unchanged
|
Description
A
FormField/FormFieldGroupwithout alabelcould not show the required mark. It is now drawn in CSS at the topright of the input (for groups: the last item when horizontal, the first when vertical).
.required:not([data-has-label]); no markup change in FormField.data-mtf-componentand keep their content width, so the mark followstheir text.
$required-mark.overflow: hiddenclipped the mark. The spinner buttons now inherit the root's radius (pillincluded),so it is removed.
Type of Change
Screenshots / Preview
Checklist
How to Test
Test data can be taken from the Storybook Form story (Components/Form › Primary): copy its fields and remove their
labelprops.