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

#3113732: Implement Form components #24

Merged
merged 11 commits into from
Feb 16, 2022
Merged

Conversation

veej
Copy link
Member

@veej veej commented Feb 10, 2022

Closes #3113732

First PR implementing just the CheckboxField for now, since there are a couple of topics that must be addressed
Implemented also RadioGroupField

Test Plan

tests performed

Kapture 2022-02-10 at 10 59 25

Kapture 2022-02-10 at 18 39 10

@kanbanbot kanbanbot added the WIP label Feb 10, 2022

export const checkboxRecipe = strictRecipe({
base: [
{ position: "relative", zIndex: "1" },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe not the best solution, but in this way we're rendering the checkbox square above the extendedHitArea, so that the mouse events (e.g. hover) are intercepted and we can set a proper style to the square only (e.g. borders on hover)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for now, I'll double check later if we can remove this zIndex

className={fieldContainer}
>
<VisuallyHidden>
<input {...mergeProps(inputProps, fieldProps, focusProps)} ref={ref} />
Copy link
Member Author

@veej veej Feb 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ focusProps are missing in hm. They're needed to make the focus ring work correctly

@veej veej force-pushed the 3113732-implement_form_components branch from 5173e8f to 0e4de9c Compare February 10, 2022 09:51
@veej veej requested review from gabro and Phyele February 10, 2022 09:59
@kanbanbot kanbanbot added in review and removed WIP labels Feb 10, 2022
@veej veej force-pushed the 3113732-implement_form_components branch from 0675835 to 9e88a17 Compare February 10, 2022 17:41
@veej
Copy link
Member Author

veej commented Feb 14, 2022

NumberField added

@veej veej force-pushed the 3113732-implement_form_components branch 3 times, most recently from 1b83564 to 592141a Compare February 15, 2022 08:11
@veej veej force-pushed the 3113732-implement_form_components branch from 8a5c19f to d3b67f5 Compare February 16, 2022 12:54
Copy link
Member

@gabro gabro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:


export const checkboxRecipe = strictRecipe({
base: [
{ position: "relative", zIndex: "1" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for now, I'll double check later if we can remove this zIndex

@veej veej merged commit 599976d into main Feb 16, 2022
@veej veej deleted the 3113732-implement_form_components branch February 16, 2022 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants