// @flow
import React from 'react';

// Assistive text to describe visual elements. Hidden for sighted users.
const A11yText = (props: any) => (
  <span
    css={{
      zIndex: 9999,
      border: 0,
      clip: 'rect(1px, 1px, 1px, 1px)',
      height: 1,
      width: 1,
      position: 'absolute',
      overflow: 'hidden',
      padding: 0,
      whiteSpace: 'nowrap',
      backgroundColor: 'red',
      color: 'blue',
    }}
    {...props}
  />
);

export default A11yText;
