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

zendeskgarden / react-components / bf5adb6b-e587-48e7-818b-472e6edb69af

24 Jun 2024 03:06PM UTC coverage: 96.036% (-0.007%) from 96.043%
bf5adb6b-e587-48e7-818b-472e6edb69af

Pull #1842

circleci

geotrev
chore: code review
Pull Request #1842: feat(notifications): new light/dark mode colors

3330 of 3683 branches covered (90.42%)

Branch coverage included in aggregate %.

227 of 230 new or added lines in 24 files covered. (98.7%)

1 existing line in 1 file now uncovered.

10139 of 10342 relevant lines covered (98.04%)

213.21 hits per line

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

90.91
/packages/notifications/src/elements/Well.tsx
1
/**
2
 * Copyright Zendesk, Inc.
3
 *
4
 * Use of this source code is governed under the Apache License, Version 2.0
5
 * found at http://www.apache.org/licenses/LICENSE-2.0.
6
 */
7

8
import React from 'react';
4✔
9
import PropTypes from 'prop-types';
4✔
10
import { IWellProps } from '../types';
11
import { StyledWell } from '../styled';
4✔
12
import { Title } from './content/Title';
4✔
13
import { Paragraph } from './content/Paragraph';
4✔
14

NEW
15
export const WellComponent = React.forwardRef<HTMLDivElement, IWellProps>(
×
16
  ({ isFloating, isRecessed, ...props }, ref) => (
17
    <StyledWell ref={ref} $isFloating={isFloating} $isRecessed={isRecessed} {...props} />
18
  )
19
);
20

21
WellComponent.displayName = 'Well';
4✔
22

23
WellComponent.propTypes = {
4✔
24
  isRecessed: PropTypes.bool,
25
  isFloating: PropTypes.bool
26
};
27

28
/**
29
 * @extends HTMLAttributes<HTMLDivElement>
30
 */
31
export const Well = WellComponent as typeof WellComponent & {
4✔
32
  Paragraph: typeof Paragraph;
33
  Title: typeof Title;
34
};
35

36
Well.Paragraph = Paragraph;
4✔
37
Well.Title = Title;
4✔
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