material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

The ListItem's avatar while using RTL theme

Open Ron-Burg opened this issue 9 years ago • 1 comments

Problem description: While using a theme with "isRtl" equal to True, the prop of leftAvatar is actually rightAvatar. It's possible that it is happening in many other components, maybe change the prop the something like primary and secondary so that there will be no confusion.

Steps to reproduce

  • Create a ListItem component with leftAvatar propertiy (or RightAvatar)
  • feed the component with a muiTheme with "isRtl" equal to True.

Now the avatar will be in the opposite side of the prop's definition.

Versions

  • Material-UI: 0.18.7
  • React: 15.6.1
  • Browser: Chrome 60.0.3112.101

Ron-Burg avatar Aug 18 '17 04:08 Ron-Burg

I'm closing for #6874.

oliviertassinari avatar Aug 18 '17 08:08 oliviertassinari