-
Notifications
You must be signed in to change notification settings - Fork 169
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
[MWPW-158927] Countdown Timer feedbacks incorporated #2955
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #2955 +/- ##
==========================================
- Coverage 96.31% 96.29% -0.02%
==========================================
Files 242 242
Lines 54987 54993 +6
==========================================
- Hits 52959 52957 -2
- Misses 2028 2036 +8 ☔ View full report in Codecov by Sentry. |
libs/features/mas/web-components/test/merch-card.mini-compare.test.html.js
Outdated
Show resolved
Hide resolved
libs/features/mas/web-components/test/merch-card.mini-compare.test.html.js
Outdated
Show resolved
Hide resolved
This reverts commit c7e4d1d.
libs/features/cdt/cdt.css
Outdated
@@ -49,7 +50,7 @@ | |||
padding: 0 9px; | |||
width: 10px; | |||
border-radius: 5px; | |||
font-size: var(--type-body-m-size); | |||
font-size: 18px; |
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.
Why are you going away from using variables? 🤔
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.
lgtm thanks a lot @rohitsahu !
@rohitsahu @rahulgupta999 looking into the CDT design for modal, the placement does not seem right. Shouldn't the CDT be below the text of the modal (in a way connected to it)? Could you please check the exact requirement for this arrangement as well? Also looks too much on the left, outside of the margins Actual (https://mwpw-158927--milo--rohitsahu.hlx.page/drafts/rahulgup/modal-cdt): |
Agreed. Also discussed, issue is present with CTL in media block as well. Both issues will be fixed in this PR. |
@afmicka Fixed, please verify |
@rohitsahu there is a noticeable difference in box size that was not there before. Could you please take a look? |
@afmicka For Arabic font size is larger (1.25x) for texts, hence I fixed the CDT font sizes as well to keep the sizes consistent with the body texts. |
* stage: MWPW-158886: update the way we send arbitrary fields to caas (adobecom#2977) MWPW-159028: MAS more technical documents + refactored aem related code (adobecom#2952) MWPW-158776 Fix video CLS (adobecom#2915) MWPW-159197 Invoke onReady of standalone gnav when it is rendered adobecom#2962 (adobecom#2963) MWPW-159157: Update modal to account for new image size (adobecom#2975) Reverts MWPW-157555: Causing prices and CTAs to fail in Safari (adobecom#2987) [MWPW-159287 : NALA] Enhance Nala Run Command to Support Feature Branches with with an owner other than 'adobecom' (adobecom#2978) [MWPW-158927] Countdown Timer feedbacks incorporated (adobecom#2955) [MWPW-159265] Callout text in RTL not properly aligned (adobecom#2974) Add support for Jarvis through Unav and make appID of notifications configurable (adobecom#2969) MWPW-159236 Fix duplicate percent in donut chart tooltip (adobecom#2968) MWPW-144360 Prototype pollution tag selector (adobecom#2967) [MWPW-153616] Update 404 links in region selector (adobecom#2956) MWPW-157555: Remove useless logic and putting import commerce.js top. (adobecom#2906) # Conflicts: # libs/deps/mas/mas.js # libs/deps/mas/merch-card.js # libs/deps/mas/plans-modal.js # libs/features/mas/web-components/src/global.css.js
* Fix RTL issues with Countdown Timer * UT fix * review comment * review comment * review comment * font fixes * do not reverse * Revert "UT fix" This reverts commit c7e4d1d. * added CDT in notifications standard variant * ends in vertical positioning fix * review comments * UT added for cdt in notification * lint * css fixes * minor fix * lint * css * update timer for instant query param * narcis review feedback incorporated from PR adobecom#2928 * minor refactoring * fix CDT alignment in media and modal block --------- Co-authored-by: Rohit Sahu <rosahu@adobe.com>
Added CDT to notifications. CDT in Modal already works. To be validated in testing.
For RTL, fixed the flex direction for the "timer-block" and the "timer-fragment".
Fixed the font-sizes based on the design: https://adobe.sharepoint.com/:p:/s/Adobedotcom/Eaw_AFM_SP5HpKZEYktTYdQBkmxRuJ69C0BsakLlSnEXJQ?e=lkcqHv
ENDS IN was not vertically aligned for CTL in notifications. Fixed be setting the ine-height.
Resolves: MWPW-158927
https://main--milo--adobecom.hlx.page/
Test URLs:
For CDT in notification:
Set rtl to see the effect by setting document.dir in console:
document.dir = "rtl"