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

JedWatson / react-select / 9de42ca4-8c55-4031-8310-e7e0a2b0128b

26 Oct 2024 11:27AM CUT coverage: 75.844%. Remained the same
9de42ca4-8c55-4031-8310-e7e0a2b0128b

Pull #5880

circleci

lukebennett88
add box-sizing to border-box for RequiredInput

adding `required` would otherwise cause an extra (unstylable) component to be added which has some implicit padding from the user agent style sheet (inputs have padding) which could cause horizontal scrolling when the whole scroll field is 100% wide.
Pull Request #5880: add box-sizing to border-box for RequiredInput

658 of 1052 branches covered (62.55%)

1033 of 1362 relevant lines covered (75.84%)

1934.69 hits per line

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

0.0
/packages/react-select/src/NonceProvider.tsx
1
import * as React from 'react';
2
import { useMemo } from 'react';
3
import { ReactNode } from 'react';
4
import { CacheProvider } from '@emotion/react';
5
import createCache from '@emotion/cache';
6

7
interface NonceProviderProps {
8
  nonce: string;
9
  children: ReactNode;
10
  cacheKey: string;
11
}
12

13
export default ({ nonce, children, cacheKey }: NonceProviderProps) => {
14
  const emotionCache = useMemo(
×
15
    () => createCache({ key: cacheKey, nonce }),
×
16
    [cacheKey, nonce]
17
  );
18
  return <CacheProvider value={emotionCache}>{children}</CacheProvider>;
×
19
};
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