diff --git a/react/features/base/react/components/web/Text.js b/react/features/base/react/components/web/Text.js index 65cfddd21..864152ae5 100644 --- a/react/features/base/react/components/web/Text.js +++ b/react/features/base/react/components/web/Text.js @@ -1,5 +1,7 @@ import React, { Component } from 'react'; +import { getFixedPlatformStyle } from '../../../styles'; + /** * Implements a React/Web {@link Component} for displaying text similar to React * Native's {@code Text} in order to facilitate cross-platform source code. @@ -14,6 +16,12 @@ export default class Text extends Component { * @returns {ReactElement} */ render() { - return React.createElement('span', this.props); + // eslint-disable-next-line react/prop-types + const _style = getFixedPlatformStyle(this.props.style); + + return React.createElement('span', { + ...this.props, + style: _style + }); } }