Skip to content

Commit

Permalink
[Icon] Disable translation, e.g Google Translate (mui#23237)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeltrangomez84 authored and sujinleeme committed Oct 28, 2020
1 parent 2f32b7b commit c3c01da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/material-ui/src/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ const Icon = React.forwardRef(function Icon(props, ref) {
<Component
className={clsx(
'material-icons',
// Prevent the translation of the text content.
// The font relies on the exact text content to render the icon.
'notranslate',
classes.root,
{
[classes[`color${capitalize(color)}`]]: color !== 'inherit',
Expand Down

0 comments on commit c3c01da

Please sign in to comment.