Skip to content

Commit

Permalink
fix(components) fix long unit wrapping issue (#16836)
Browse files Browse the repository at this point in the history
* fix(components) fix long unit wrapping issue
  • Loading branch information
koji authored Nov 14, 2024
1 parent 59814e6 commit 9bf09d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/src/atoms/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react'
import styled, { css } from 'styled-components'

import { Flex } from '../../primitives'
import { ALIGN_CENTER, DIRECTION_COLUMN, TEXT_ALIGN_RIGHT } from '../../styles'
import {
ALIGN_CENTER,
DIRECTION_COLUMN,
NO_WRAP,
TEXT_ALIGN_RIGHT,
} from '../../styles'
import { BORDERS, COLORS } from '../../helix-design-system'
import { Icon } from '../../icons'
import { RESPONSIVENESS, SPACING, TYPOGRAPHY } from '../../ui-style-constants'
Expand Down Expand Up @@ -233,6 +238,7 @@ export const InputField = React.forwardRef<HTMLInputElement, InputFieldProps>(
font-weight: ${TYPOGRAPHY.fontWeightRegular};
line-height: ${TYPOGRAPHY.lineHeight28};
justify-content: ${textAlign};
white-space: ${NO_WRAP};
}
`

Expand Down

0 comments on commit 9bf09d8

Please sign in to comment.