• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IQSS / dataverse-frontend / 5533092765

12 Jul 2023 02:49PM CUT coverage: 98.649% (+0.4%) from 98.216%
5533092765

push

github

MellyGray
fix(cypress action): update to v5

99 of 103 branches covered (96.12%)

Branch coverage included in aggregate %.

266 of 267 relevant lines covered (99.63%)

201.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/packages/design-system/src/lib/components/form/form-group/form-element/FormLabel.tsx
1
import { PropsWithChildren } from 'react'
1,386✔
2
import { Form as FormBS } from 'react-bootstrap'
3
import { RequiredInputSymbol } from '../../required-input-symbol/RequiredInputSymbol'
4
import { QuestionMarkTooltip } from '../../../tooltip/question-mark-tooltip/QuestionMarkTooltip'
5

6
interface FormLabelProps {
7
  required?: boolean
8
  message?: string
9
  withinMultipleFieldsGroup?: boolean
10
}
11

12
export function FormLabel({
198✔
13
  required,
14
  message,
15
  withinMultipleFieldsGroup,
16
  children
17
}: PropsWithChildren<FormLabelProps>) {
18
  const layoutProps = withinMultipleFieldsGroup ? {} : { column: true, sm: 3 }
414!
19

20
  return (
414✔
21
    <FormBS.Label {...layoutProps}>
22
      {children}
23
      {required && <RequiredInputSymbol />}{' '}
444✔
24
      {message && <QuestionMarkTooltip placement="right" message={message}></QuestionMarkTooltip>}
426✔
25
    </FormBS.Label>
26
  )
27
}
198✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc