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

zendeskgarden / react-components / dfe04bb4-5adc-46cd-9267-e69a5fbb12f6

20 Jun 2024 05:22PM UTC coverage: 96.035% (-0.008%) from 96.043%
dfe04bb4-5adc-46cd-9267-e69a5fbb12f6

Pull #1842

circleci

geotrev
chore: changes to global alert button colors (info and warning)
Pull Request #1842: feat(notifications): new light/dark mode colors

3330 of 3683 branches covered (90.42%)

Branch coverage included in aggregate %.

220 of 223 new or added lines in 24 files covered. (98.65%)

1 existing line in 1 file now uncovered.

10138 of 10341 relevant lines covered (98.04%)

213.2 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