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

Feature/imagechoice-component #1091

Open
wants to merge 41 commits into
base: dev
Choose a base branch
from

Conversation

marikannanm
Copy link

@marikannanm marikannanm commented Feb 23, 2024

Adaptive Form Image Choice (v1)

Description

This PR with code changes for Adaptive Form Image Choice Component (V1)

This component still needs to be updated and tested accordingly.
The code changes made so far reflect the current progress.

image

Uploading image.png…

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 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 and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

marikannanm and others added 30 commits February 23, 2024 20:33
imagechoice-component-Updated dialog option label and corresponding java files
imagechoice-component-Updated imagechoiceview js file
imagechoice-component-update editDialog js
imagechoice-component- Updated ImageChoiceImpl java file
imagechoice-component - updated imagechoiceview js and imagechoiceimp…
imagechoice-component-updated imagechoiceview js file
imagechoice-component - Added Unit Test cases
imagechoice-component- updated readme file
@marikannanm marikannanm marked this pull request as ready for review March 9, 2024 12:34
IMAGE("image");
IMAGE("image"),

IMAGECHOICE("imagechoice");
Copy link
Contributor

Choose a reason for hiding this comment

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

fieldType 'imagechoice' does not exists, I believe it should be 'checkbox'

Copy link
Author

Choose a reason for hiding this comment

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

The reason for creating a new field type is that the image choice component is a composite multi/single selection type, and it will not store values as an enum.

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the code at line 130(this.toggle(enabled, FormView.Constants.ARIA_DISABLED, true);), as it will add aria-disabled attribute on the parent div. Aria-disabled attribute is applied on the input, not on the div.

Copy link
Author

Choose a reason for hiding this comment

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

Removed the code at line number - 130.

marikannanm and others added 2 commits April 29, 2024 10:19
ImageChoiceComponent - Implemented Code Review feedback [Remove the code at line 130(this.toggle(enabled, FormView.Constants.ARIA_DISABLED, true);), as it will add aria-disabled attribute on the parent div. Aria-disabled attribute is applied on the input, not on the div.]
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.

None yet

3 participants