Skip to content

Conversation

@pavi41
Copy link
Contributor

@pavi41 pavi41 commented Dec 6, 2023

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

name={name}
readOnly={readOnly}
disabled={!enabled}
disabled={context.disabled}

Choose a reason for hiding this comment

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

What if checkbox is rendered without TnC?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this logic and implemented it via model, fetching the model of checkbox and enabling it after scroll.

appliedCssClassNames,
readOnly
} = props;
const options = enumNames && enumNames.length ? enumNames : enums || [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does link component have checkbox group, its not clear ?


return (
<div
className={`cmp-adaptiveform-checkboxgroup cmp-adaptiveform-checkboxgroup--${
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we not re-using the existing checkbox group component ?

Copy link
Contributor Author

@pavi41 pavi41 Jan 8, 2025

Choose a reason for hiding this comment

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

@rismehta, the bem is different when compared to checkbox group component as it contains the anchor tag so that one can visit the link in order to enable the checkbox. The same approach has been used in core component as well.

Copy link
Collaborator

@rismehta rismehta Jan 9, 2025

Choose a reason for hiding this comment

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

I don't see the BEM different, can you point out the differences ? For core components, re-usability was not trivial, thats why we did not re-use the components. But in react, you should be able to re-use, if there are differences expose them as props.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implemented, re-used the checkbox group component!

Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

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

check comments

key={enums![index]}
>
<label className="cmp-adaptiveform-checkboxgroup__option-label">
<a
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rismehta we are using anchor tag here.

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