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

IQSS / dataverse-frontend / 8095940691

29 Feb 2024 12:23PM CUT coverage: 98.563% (+1.1%) from 97.491%
8095940691

Pull #328

github

MellyGray
fix(tests): set Cypress env variable for base url
Pull Request #328: 295 - Display real dataset version information in the File Page

97 of 101 branches covered (96.04%)

Branch coverage included in aggregate %.

246 of 247 relevant lines covered (99.6%)

212.45 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