Skip to content

v4.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@oliviertassinari oliviertassinari released this 03 Mar 16:14
Mar 3, 2019

A big thanks to the 23 contributors who made this release possible!

Here are some highlights ✨:

@material-ui/[email protected]

Breaking changes

  • [Tabs] Simplify override (#14638) @oliviertassinari

    We have removed the labelContainer, label and labelWrapped class keys.
    We have removed 2 intermediary DOM elements.
    You should be able to move the custom styles to the root class key.
    capture d ecran 2019-02-23 a 15 46 48

  • [Table] Add dense support (#14561) @leMaik

    • We have removed the deprecated numeric property.
    -<TableCell numeric>{row.calories}</TableCell>
    +<TableCell align="right">{row.calories}</TableCell>
    • We have removed the fixed height property on the table row.
      The cell height is computed by the browser using the padding and line-height.
    • The dense mode was promoted to a different property:
    -<TableCell padding="dense" />
    +<TableCell size="small" />
  • Every component except Dialog, MenuList, Modal, Popover and Tabs forward
    their innerRef (#14536).

    This is implemented by using React.forwardRef. This affects the internal component
    tree and display name and therefore might break shallow or snapshot tests.
    innerRef will no longer return a ref to the instance
    (or nothing if the inner component is a function component) but a ref to its root component.
    The corresponding API docs list the root component.

Changes

@material-ui/[email protected]

@material-ui/[email protected]

@material-ui/[email protected]

  • [utils] Drop componentPropType in favor of PropTypes.elementType (#14602) @eps1lon

Docs

Core