fix: adjust agent promotional banner UI to match design mocks#91795
Draft
MelvinBot wants to merge 3 commits into
Draft
fix: adjust agent promotional banner UI to match design mocks#91795MelvinBot wants to merge 3 commits into
MelvinBot wants to merge 3 commits into
Conversation
- Use medium button size on wide layout instead of small - Apply label font size to subtitle text - Reduce gap spacing from gap4 (16px) to gap3 (12px) Co-authored-by: Shubham Agrawal <shubham1206agra@users.noreply.github.com>
62 tasks
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
| subtitleStyle={[styles.mt1]} | ||
| style={[styles.borderRadiusComponentLarge, styles.gap4]} | ||
| subtitleStyle={[styles.mt1, styles.textLabel]} | ||
| style={[styles.borderRadiusComponentLarge, styles.gap3]} |
Contributor
There was a problem hiding this comment.
Suggested change
| style={[styles.borderRadiusComponentLarge, styles.gap3]} | |
| style={[styles.borderRadiusComponentLarge]} |
@MelvinBot No need for gap3 as it is already present in BillingBanner component
Contributor
Author
There was a problem hiding this comment.
Good catch — removed the redundant gap3. Pushed in 9dee2f2.
gap3 is already applied by the BillingBanner component internally, so specifying it again in the style prop is unnecessary. Co-authored-by: Shubham Agrawal <shubham1206agra@users.noreply.github.com>
Contributor
@dubielzyk-expensify The spacing cannot be reduced too much since we are using flexbox here. Do you have any other feedback here? cc @NicolasBonet here |
Contributor
Contributor
|
@MelvinBot Address #91795 (comment) |
Address design review feedback from dubielzyk-expensify: - Use gap4 (16px) between the CTA button and dismiss icon on wide layout - Bundle the button and dismiss icon into a single rightComponent so their spacing is controlled independently of the container gap Co-authored-by: Shubham Agrawal <shubham1206agra@users.noreply.github.com>
Contributor
Author
|
Addressed the spacing feedback in 111146c:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Explanation of Change
Follow-up to #91251 addressing design review feedback on the
AgentPromotionalBannercomponent:textLabel) to the subtitle text instead of the default body sizegap4(16px) togap3(12px) for tighter spacing around the button and dismiss iconFixed Issues
$ #91243
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.
Offline tests
No special offline test required — purely cosmetic changes.
QA Steps
// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Designlabel and/or tagged@Expensify/designso the design team can review the changes.Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari