-
Notifications
You must be signed in to change notification settings - Fork 58
FORMS-18644: Desktop, RWD Tablet, RWD Mobile - Controls have same name but different actions @sunnym @vavarshn #1571
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
base: dev
Are you sure you want to change the base?
Conversation
…e but different actions @sunnym @vavarshn
<template data-sly-template.questionMark="${@ componentId, longDescription, bemBlock, componentTitle}"> | ||
<sly data-sly-set.namedTitle="${componentTitle} help text" /> | ||
<sly data-sly-set.fullTitle="${componentTitle ? namedTitle : 'Help text'}" /> | ||
<button class="${bemBlock}__questionmark" data-sly-test="${longDescription}" title="${fullTitle}"> |
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.
This will impact backward compatiblity, it would need to be addressed
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.
The only backwd compatibility case I could think of is this component being used without giving it he "componentTitle" param (as it was before).
I made a test using it in the "checkboxgroup" component as
<div data-sly-call="${questionMark.questionMark @componentId=checkboxgroup.id, longDescription=checkboxgroup.description, bemBlock='cmp-adaptiveform-checkboxgroup', componentTitle=checkboxgroup.label.value}" data-sly-unwrap></div>
And the text returns to "Help text" as it was initially
If there are any other compatibility cases please let me know.
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
Checked, answer added. |
<button class="${bemBlock}__questionmark" data-sly-test="${longDescription}" title="Help text"> | ||
<template data-sly-template.questionMark="${@ componentId, longDescription, bemBlock, componentTitle}"> | ||
<sly data-sly-set.namedTitle="${componentTitle} help text" /> | ||
<sly data-sly-set.fullTitle="${componentTitle ? namedTitle : 'Help text'}" /> |
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.
Since we are fixing this can we add localization fix as well, use following instead:
${'Help text' @ i18n}
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.
Added localization.
Please resolve conflicts here |
Description
Related Issue
https://jira.corp.adobe.com/browse/FORMS-18644
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: