Skip to content
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

[IACROSS-214] Increase the font size of the FeatureInfo component #179

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/featureInfo/FeatureInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import React from "react";
import { GestureResponderEvent, View } from "react-native";
import { IOStyles } from "../../core";
import {
Body,
HSpacer,
IOIconSizeScale,
IOIcons,
IOPictogramSizeScale,
IOPictograms,
Icon,
LabelLink,
LabelSmall,
Pictogram,
VSpacer
} from "../../components";
import { IOStyles } from "../../core";

type PartialFeatureInfo = {
// Necessary to render main body with different formatting
Expand Down Expand Up @@ -43,9 +43,9 @@ const DEFAULT_PICTOGRAM_SIZE: IOPictogramSizeScale = 48;
const renderNode = (body: FeatureInfoProps["body"]) => {
if (typeof body === "string") {
return (
<LabelSmall weight="Regular" color="grey-700" testID="infoScreenBody">
<Body color="grey-700" testID="infoScreenBody">
{body}
</LabelSmall>
</Body>
);
}

Expand Down Expand Up @@ -74,8 +74,8 @@ export const FeatureInfo = ({
{/* Add "marginTop" equivalent if body text is present.
This verbose code could be deleted once we got "gap"
property support */}
{body && <VSpacer size={8} />}
<LabelLink fontSize="small" onPress={actionOnPress}>
{body && <VSpacer size={4} />}
<LabelLink fontSize="regular" onPress={actionOnPress}>
{actionLabel}
</LabelLink>
</>
Expand Down
Loading