-
Notifications
You must be signed in to change notification settings - Fork 64
Fixing Min/Max dialog fields for number input, when the type is decimal #1348
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
- randomly chosen step as 0.01 for decimal, but it can be author defined
Accessibility Violations Found
|
1 similar comment
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Accessibility Violations Found
|
Accessibility Violations Found
|
1 similar comment
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
1 similar comment
Accessibility Violations Found
|
| */ | ||
|
|
||
| @Version("5.5.4") // aligning this with release/650 since af2-rest-api is compiled with 5.2.0 in release/650 | ||
| @Version("5.6.4") // aligning this with release/650 since af2-rest-api is compiled with 5.2.0 in release/650 |
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 comment doesn't make sense here.
| if (maxInput.value.includes('.')) { | ||
| maxInput.value = Math.floor(maxInput.value); | ||
| maxInput.setAttribute('value', maxInput.value); | ||
| } |
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 add a test case for this use case where changing from number to integer, changes the min/max constraint as well
Accessibility Violations Found
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
1 similar comment
Accessibility Violations Found
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
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 #1348 +/- ##
============================================
+ Coverage 81.76% 81.94% +0.17%
- Complexity 881 899 +18
============================================
Files 101 103 +2
Lines 2314 2337 +23
Branches 314 317 +3
============================================
+ Hits 1892 1915 +23
Misses 259 259
Partials 163 163 ☔ View full report in Codecov by Sentry. |
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
|
Merging this, since @vdua has already reviewed the changes. |
…al (#1348) * Fixing Min/Max dialog fields for number input, when the type is decimal - randomly chosen step as 0.01 for decimal, but it can be author defined * fixing indentation * the correct value for decimal type is number * Adding support for decimal in minimum/maximum * Addressing review comments and adding more test cases * Removing skipped test * Adding more test --------- Co-authored-by: Rishi Mehta <rismehta@adobe.com>
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: