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

IQSS / dataverse-frontend / 6158834163

12 Sep 2023 11:29AM CUT coverage: 98.58% (-0.04%) from 98.617%
6158834163

push

github

MellyGray
feat(DatasetActionButtons): add EditDatasetMenu component

97 of 101 branches covered (0.0%)

Branch coverage included in aggregate %.

250 of 251 relevant lines covered (99.6%)

209.98 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