-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix alignment of hyperlink in ValidateStep message within VBA flow #5319
Comments
Triggered auto assignment to @jboniface ( |
Triggered auto assignment to @jasperhuangg ( |
If considered as external, this could be solution:We have to change line 232-234 from below code: App/src/pages/ReimbursementAccount/ValidationStep.js Lines 230 to 236 in 5cea12c
Method 1: Adjust iOS/Android bottom margin. Not accurate. (I will not suggest) Other serious problem is, If link text goes to multiline then link text will mangle with other text. So I will not suggest to go with this at moment. <TextLink onPress={this.navigateToConcierge} style={[{marginBottom: Platform.OS === CONST.PLATFORM.IOS ? -3 : -4}]}>
{this.props.translate('common.here')}
</TextLink> As per guideline inline style not preferred, so we can create style within src/styles/styles.js and refactor as under: textNormalSupporting: os => ({
marginBottom: os === CONST.PLATFORM.IOS ? -3 : -4,
}),
<TextLink onPress={this.navigateToConcierge} style={[styles.textNormalSupporting(Platform.OS)]} >
{this.props.translate('common.here')}
</TextLink> Method 2: Change <Text onPress={this.navigateToConcierge} style={styles.link} accessible accessibilityLabel={this.props.translate('common.here')}>
{this.props.translate('common.here')}
</Text> Below are Screenshots having Method 1 and Method 2 written side by side iOSAndroidWebMobile WebDesktop |
@jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
This is also reproducible in other hyperlinks around the app (Only on Android) Android - Links - Links are not aligned with text.Action Performed:
Expected Result:Links are rendered on the same line as text. Actual Result:Links are not aligned with text. This can bee seen in any hyperlinked text around the app. Workaround:None need. Visual issue. Platform:Where is this issue occurring?
Version Number: 1.1.0 Reproducible in staging?: yes Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL: Issue reported by: Applause |
Hey! Sorry, plate super full lately with User-Created Policy Rooms and midterm season fast approaching. This issue looks totally doable by an external contributor. Specifically, I like @PrashantMangukiya's second solution 👍 |
Triggered auto assignment to @puneetlath ( |
@puneetlath Please let whoever is working on this know to request me for review! |
@puneetlath, @jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@puneetlath Friendly bump! |
Closing in favor of https://github.com/Expensify/Expensify/issues/179254 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The
here
hyperlink should be aligned with the other text in the rightpane.Actual Result:
The
here
hyperlink it misaligned.Platform:
Reproducible in staging?: Yes
Reproducible in production?: Yes
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: