/** * Text.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Web-specific implementation of the cross-platform Text abstraction. */ import * as PropTypes from 'prop-types'; import * as React from 'react'; import { FocusArbitratorProvider } from '../common/utils/AutoFocusHelper'; import { Text as TextBase, Types } from '../common/Interfaces'; import AccessibilityUtil from './AccessibilityUtil'; import Styles from './Styles'; // Adding a CSS rule to display non-selectable texts. Those texts // will be displayed as pseudo elements to prevent them from being copied // to clipboard. It's not possible to style pseudo elements with inline // styles, so, we're dynamically creating a