-
Notifications
You must be signed in to change notification settings - Fork 58
Issue with long description text and introduce data-name attribute in… #1522
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
Conversation
e22383d
to
7800d79
Compare
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1522 +/- ##
=========================================
Coverage 82.41% 82.41%
Complexity 968 968
=========================================
Files 107 107
Lines 2491 2491
Branches 342 342
=========================================
Hits 2053 2053
Misses 262 262
Partials 176 176 ☔ View full report in Codecov by Sentry. |
@@ -29,6 +29,7 @@ | |||
data-cmp-enabled="${radioButton.enabled ? 'true' : 'false'}" | |||
data-cmp-required="${radioButton.required ? 'true': 'false'}" | |||
data-cmp-readonly="${radioButton.readOnly ? 'true' : 'false'}" | |||
data-name="${radioButton.name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also change id to have the name here, https://github.com/adobe/aem-core-forms-components/blob/master/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/radiobutton/v1/radiobutton/clientlibs/site/js/radiobuttonview.js#L181 (this should be this.id + "_" + this.name
please also add a test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sakshi-arora1 Can you please explain the concern with this change, what was the purpose of adding a constant suffix "_name" to the id attribute ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check comments
@@ -29,6 +29,7 @@ | |||
data-cmp-enabled="${radioButton.enabled ? 'true' : 'false'}" | |||
data-cmp-required="${radioButton.required ? 'true': 'false'}" | |||
data-cmp-readonly="${radioButton.readOnly ? 'true' : 'false'}" | |||
data-name="${radioButton.name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sakshi-arora1 Can you please explain the concern with this change, what was the purpose of adding a constant suffix "_name" to the id attribute ?
b42fecd
to
6c586d5
Compare
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
… radiobutton
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: