Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type {TNode} from 'react-native-render-html';
import useThemeStyles from '@hooks/useThemeStyles';
import convertToLTR from '@libs/convertToLTR';
import FontUtils from '@styles/utils/FontUtils';
import variables from '@styles/variables';
import type ChildrenProps from '@src/types/utils/ChildrenProps';
import {computeEmbeddedMaxWidth, isChildOfTaskTitle} from './htmlEngineUtils';
import htmlRenderers from './HTMLRenderers';
Expand Down Expand Up @@ -152,7 +151,7 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
'account-manager-link': HTMLElementModel.fromCustomModel({tagName: 'account-manager-link', contentModel: HTMLContentModel.textual}),
'next-step': HTMLElementModel.fromCustomModel({
tagName: 'next-step',
mixedUAStyles: {...styles.textLabelSupporting, paddingVertical: variables.labelPaddingVertical},
mixedUAStyles: {...styles.textLabelSupporting, ...styles.lh16},
contentModel: HTMLContentModel.textual,
}),
'next-step-email': HTMLElementModel.fromCustomModel({tagName: 'next-step-email', contentModel: HTMLContentModel.textual}),
Expand Down Expand Up @@ -195,7 +194,6 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
styles.taskTitleMenuItemItalic,
styles.em,
styles.h1,
styles.lh16,
styles.blockquote,
styles.onlyEmojisTextLineHeight,
styles.subTextFileUpload,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function MoneyRequestReportPreviewContent({
<Text style={[styles.reportStatusText, {color: reportStatusColorStyle?.textColor}]}>{reportStatus}</Text>
</View>
)}
{!shouldShowAccessPlaceHolder && <Text style={[styles.textLabelSupporting]}>{expenseCount}</Text>}
{!shouldShowAccessPlaceHolder && <Text style={[styles.textLabelSupporting, styles.lh16]}>{expenseCount}</Text>}
</View>
)
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,7 @@ function TransactionPreviewContent({
/>
<Text
numberOfLines={1}
style={[
isDeleted && styles.lineThrough,
styles.textMicroSupporting,
styles.lhUndefined,
styles.textMicroSupportingPadding,
styles.pre,
styles.flexShrink1,
styles.textDanger,
]}
style={[isDeleted && styles.lineThrough, styles.textMicroSupporting, styles.pre, styles.flexShrink1, {color: theme.danger}]}
>
{RBRMessage}
</Text>
Expand Down
12 changes: 2 additions & 10 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const staticStyles = (theme: ThemeColors) =>
alignItems: 'center',
justifyContent: 'center',
borderRadius: variables.componentBorderRadiusSmall,
minHeight: 16,
height: 16,
},

reportStatusText: {
Expand Down Expand Up @@ -1469,10 +1469,6 @@ const staticStyles = (theme: ThemeColors) =>
color: theme.textSupporting,
},

lhUndefined: {
lineHeight: undefined,
},

lh14: {
lineHeight: variables.lineHeightSmall,
},
Expand Down Expand Up @@ -4136,12 +4132,8 @@ const staticStyles = (theme: ThemeColors) =>
height: 450,
},

textMicroSupportingPadding: {
padding: variables.paddingSmall,
},

tabSelectorButton: {
minHeight: variables.tabSelectorButtonHeight,
height: variables.tabSelectorButtonHeight,
padding: variables.tabSelectorButtonPadding,
flexDirection: 'row',
alignItems: 'center',
Expand Down
2 changes: 0 additions & 2 deletions src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export default {
defaultAvatarPreviewSize: 360,
fabBottom: 25,
breadcrumbsFontSize: getValueUsingPixelRatio(19, 32),
labelPaddingVertical: Math.abs((getValueUsingPixelRatio(13, 19) - 16) / 2),
fontSizeXXSmall: 7,
fontSizeSmall: getValueUsingPixelRatio(11, 17),
fontSizeExtraSmall: 9,
Expand Down Expand Up @@ -134,7 +133,6 @@ export default {
inputHeightSmall: 28,
inputIconMarginTopSmall: getValueUsingPixelRatio(8, 11),
inputIconMarginTopLarge: getValueUsingPixelRatio(16, 21),
paddingSmall: getValueUsingPixelRatio(7, 8),
formErrorLineHeight: getValueUsingPixelRatio(18, 23),
communicationsLinkHeight: getValueUsingPixelRatio(20, 30),
alternateTextHeight: getValueUsingPixelRatio(20, 24),
Expand Down
Loading