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

zendeskgarden / react-components / 2d749434-7f52-4462-8c1f-8ff787320b3f

18 Apr 2024 04:47PM UTC coverage: 96.228%. Remained the same
2d749434-7f52-4462-8c1f-8ff787320b3f

push

circleci

web-flow
feat: adds styled icon base component (#1791)

3281 of 3611 branches covered (90.86%)

Branch coverage included in aggregate %.

11 of 13 new or added lines in 3 files covered. (84.62%)

9959 of 10148 relevant lines covered (98.14%)

217.33 hits per line

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

75.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
// eslint-disable-next-line @typescript-eslint/no-unused-vars,garden-local/require-default-theme
12
export const StyledBaseIcon = styled(({ children, theme, ...props }) =>
327✔
NEW
13
  React.cloneElement(Children.only(children), props)
×
14
)`
15
  /* stylelint-disable no-empty-block */
16
`;
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