Skip to content

fix: Checkbox text ui #16130

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix: Checkbox text ui #16130

wants to merge 2 commits into from

Conversation

smgv
Copy link
Contributor

@smgv smgv commented Jun 5, 2025

Description

UI issue on the create password of the Import SRP flow. The text learn more overlaps with the button

It should be a single Text component within the Text component should be used and style fix.

Related issues

Fixes: Shoudl use a single Text component within that One more Text component for Learn More text

Manual testing steps

  1. Go to Get Started Page
  2. Click on Import Existing Wallet Button
  3. Fill the Existing SRP
  4. Navigate to Create Password UI

Screenshots/Recordings

Before

IMG_0057

After

Screenshot 2025-06-05 at 4 23 13 PM

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@smgv smgv requested review from chaitanyapotti, ieow and tommasini June 5, 2025 10:54
Copy link
Contributor

github-actions bot commented Jun 5, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.73%. Comparing base (ab54792) to head (98cd167).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16130      +/-   ##
==========================================
- Coverage   70.73%   70.73%   -0.01%     
==========================================
  Files        2570     2570              
  Lines       54858    54866       +8     
  Branches     8451     8454       +3     
==========================================
+ Hits        38802    38807       +5     
  Misses      13587    13587              
- Partials     2469     2472       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@smgv smgv changed the title Fix: Checkbox text ui fix: Checkbox text ui Jun 5, 2025
@smgv smgv self-assigned this Jun 5, 2025
const learnMoreCheckbox = getByText(
'MetaMask can’t reset this password if you forget it',
const learnMoreCheckbox = getByTestId(
ImportFromSeedSelectorsIDs.CHECKBOX_TEXT_ID,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChoosePasswordSelectorsIDs.I_UNDERSTAND_CHECKBOX_ID this seems to be the id attributed to the checkbox

So we are pressing the learn more link text and then expecting the confirm button to be pressable, I don't think we are really testing the component, since the confirm button shouldn't be pressable since we are pressing the learn more text and not the checkbox attached to it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the button is being pressable even disabled, should we check if the button is disabled instead?

/>
<TouchableOpacity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ButtonLink instead

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice callout Brian, I missed it! Thanks

Copy link

sonarqubecloud bot commented Jun 6, 2025

@chaitanyapotti chaitanyapotti marked this pull request as ready for review June 6, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants