Skip to content

Commit

Permalink
[IACROSS-214] Increase the font size of the FeatureInfo component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnplb authored Jan 22, 2024
1 parent 396f2e8 commit 437ca46
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 437ca46

Please sign in to comment.