Skip to content

fix: Update header style for Webview and transactions #12783

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 19 commits into
base: main
Choose a base branch
from

Conversation

brianacnguyen
Copy link
Contributor

@brianacnguyen brianacnguyen commented Dec 19, 2024

Description

This PR updates the header style for Webview and transactions tab to be using the HeaderBase component

Related issues

Fixes: #10664

Manual testing steps

  1. Click on the "More" button for Account
  2. Click on View on Etherscan
  3. Toggle to Dark Mode
  4. Observe change

Screenshots/Recordings

Before

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-13.at.16.48.01.mp4

After

https://github.com/user-attachments/assets/cd61ad29-565d-4566-bd82-7bb0e8b7ad0b
https://github.com/user-attachments/assets/8839ae04-a426-4ae2-9752-46c7eb0332ee

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.

@brianacnguyen brianacnguyen added the team-design-system All issues relating to design system in Mobile label Dec 19, 2024
@brianacnguyen brianacnguyen self-assigned this Dec 19, 2024
@brianacnguyen brianacnguyen requested review from a team as code owners December 19, 2024 04:18
@brianacnguyen brianacnguyen marked this pull request as draft December 19, 2024 04:18
Copy link
Contributor

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.

@brianacnguyen brianacnguyen marked this pull request as ready for review February 14, 2025 00:49
@brianacnguyen brianacnguyen added the Run Smoke E2E Requires smoke E2E testing label Feb 14, 2025
Copy link
Contributor

github-actions bot commented Feb 14, 2025

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 825bc77
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a442a196-9a75-44bd-bd3c-a786a3fde713

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@brianacnguyen brianacnguyen added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 14, 2025
@brianacnguyen brianacnguyen marked this pull request as draft February 14, 2025 00:51
@brianacnguyen brianacnguyen removed the Run Smoke E2E Requires smoke E2E testing label Feb 14, 2025
@brianacnguyen brianacnguyen marked this pull request as ready for review February 14, 2025 00:58
@brianacnguyen brianacnguyen added the Run Smoke E2E Requires smoke E2E testing label Feb 14, 2025
Copy link
Contributor

github-actions bot commented Feb 14, 2025

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 78e62a8
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b53a3284-8c66-42ab-bc75-786fc6dc5226

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@brianacnguyen brianacnguyen added Run Smoke E2E Requires smoke E2E testing needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) and removed Run Smoke E2E Requires smoke E2E testing labels Feb 14, 2025
@brianacnguyen brianacnguyen changed the title fix: Update header style for Webview fix: Update header style for Webview and transactions Feb 14, 2025
"marginRight": 16,
"marginTop": 12,
}
}
testID="navbar-account-button"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed persistent style and instead let each usage handle styles according to context

marginBottom: 12,
alignItems: 'center',
justifyContent: 'center',
},
placeholderInput: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed persistent style and instead let each usage handle styles according to context

marginBottom: 12,
alignItems: 'center',
justifyContent: 'center',
},
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reapplied style for BrowserUrlBar since it does not use HeaderBase

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-14.at.10.06.47.mp4

}
>
<NavbarTitle title={title} />
</HeaderBase>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-13.at.17.28.34.mp4

headerTitle: () => (
<Text style={innerStyles.headerTitleStyle}>{title}</Text>
header: () => (
<HeaderBase
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-13.at.16.46.24.mp4

@brianacnguyen brianacnguyen added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 14, 2025
@brianacnguyen brianacnguyen added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 14, 2025
Copy link
Contributor

github-actions bot commented Feb 14, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 8ae149c
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/29927790-895a-497f-80e1-a6bbcdbb9521

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@brianacnguyen brianacnguyen added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 14, 2025
@brianacnguyen brianacnguyen added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 15, 2025
Copy link
Contributor

github-actions bot commented Feb 15, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 5a58eb7
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b4f28d59-c483-445f-836a-e9007011691c

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) Run Smoke E2E Requires smoke E2E testing team-design-system All issues relating to design system in Mobile
Projects
Status: Review finalised - Ready to be merged
Development

Successfully merging this pull request may close these issues.

[Bug]: Not able to see the close and share buttons on blockexplorer views for iOS devices in dark mode
2 participants