UNPKG

@wordpress/components

Version:
26 lines (22 loc) 505 B
/** * External dependencies */ import { css } from '@emotion/core'; import styled from '@emotion/styled'; /** * Internal dependencies */ import InputControl from '../../input-control'; const htmlArrowStyles = ( { hideHTMLArrows } ) => { if ( ! hideHTMLArrows ) return ``; return css` &::-webkit-outer-spin-button, &::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; } `; }; export const Input = styled( InputControl )` ${ htmlArrowStyles }; `;