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

[AppBar] ToolbarGroup float property no longer functions inside AppBar

Open hilkeheremans opened this issue 11 years ago • 2 comments

When a ToolbarGroup is provided with a float="right" property, it is expected to float itself to the right side of a Toolbar. An AppBar, as a subset of Toolbar, also exhibited this behavior, at least up to v0.91.

As of v0.92, this is no longer the case for the AppBar. In v0.92, when an AppBar contains a ToolbarGroup that has a prop float=right, the ToobarGroup will not align to the right. At first glance, the fix for issue #875 applies flexbox styling to the AppBar, which probably breaks the float=right behavior of any containing ToolbarGroup components.

I'll leave it up to discussion if this is now considered "as intended" behavior, or if we prefer to apply a fix of some sorts. It might be useful to consider a fix or provide a (styling) workaround so that ToolbarGroups can be easily layouted to the right inside AppBars.

hilkeheremans avatar Jun 21 '15 07:06 hilkeheremans

@hilkeheremans coming to this pretty late, but from what the AppBar component has evolved to become today, I doubt the use case that you mention comes up often. With that being said, why couldn't you just use the Toolbar component to achieve this?

shaurya947 avatar Nov 16 '15 22:11 shaurya947

@mbrookes : We can close this

tintin1343 avatar Mar 07 '16 20:03 tintin1343