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

zendeskgarden / react-components / a42c3542-ed34-4009-bf73-26acef42dd7e

17 Apr 2024 08:42PM UTC coverage: 96.228%. First build
a42c3542-ed34-4009-bf73-26acef42dd7e

Pull #1791

circleci

geotrev
chore: code review
Pull Request #1791: feat: adds styled icon base component

3281 of 3611 branches covered (90.86%)

Branch coverage included in aggregate %.

12 of 14 new or added lines in 3 files covered. (85.71%)

9960 of 10149 relevant lines covered (98.14%)

217.34 hits per line

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

80.0
/packages/theming/src/utils/StyledBaseIcon.ts
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 styled from 'styled-components';
327✔
9
import React, { Children } from 'react';
327✔
10

11
const COMPONENT_ID = 'icon.base';
327✔
12

13
// eslint-disable-next-line @typescript-eslint/no-unused-vars,garden-local/require-default-theme
14
export const StyledBaseIcon = styled(({ children, theme, ...props }) =>
327✔
NEW
15
  React.cloneElement(Children.only(children), props)
×
16
).attrs({
17
  'data-garden-id': COMPONENT_ID,
18
  'data-garden-version': PACKAGE_VERSION
19
})`
20
  /* stylelint-disable no-empty-block */
21
`;
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