<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">When using the <code class="notranslate">Chip</code> element, behavior differs in browser. While in Chrome it has width calculated based on label and avatar, in MS Edge the element is 100% width. I did a <a href="https://codesandbox.io/s/8x8n9q5pyj" rel="nofollow">CodeSandbox snippet</a> to reproduce it.</p>
<h2 dir="auto">Expected Behavior</h2>

<p dir="auto">The <code class="notranslate">Chip</code> should be as narrow as its content, like it does in Chrome</p>
<h2 dir="auto">Current Behavior</h2>

<p dir="auto">On MS Edge (versions: Microsoft Edge 41.16299.15.0; Microsoft EdgeHTML 16.16299) the <code class="notranslate">Chip</code> element is full width</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>

<ol dir="auto">
<li><a href="https://codesandbox.io/s/8x8n9q5pyj" rel="nofollow">CodeSandbox snippet</a></li>
<li>Add a <code class="notranslate">Chip</code> element to App</li>
<li>The rendering differs in Chrome and Edge</li>
<li>Wrapping Chip with <code class="notranslate">inline-flex</code> container (e.g. <code class="notranslate">Badge</code> or custom div) fixes an issue.</li>
</ol>
<h2 dir="auto">Context</h2>

<p dir="auto">I'm rendering a statistic page, where <code class="notranslate">Avatar</code> shows ID and <code class="notranslate">label</code> displays aggregation data. I show each chip on new line (in a narrow <code class="notranslate">Grid</code> element) so it's not a big problem, but in this case Avatar is not left-most.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.24</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
<tr>
<td>browser</td>
<td>Edge</td>
</tr>
<tr>
<td>Microsoft Edge</td>
<td>41.16299.15.0</td>
</tr>
<tr>
<td>Microsoft EdgeHTML</td>
<td>16.16299</td>
</tr>
</tbody>
</table>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When passing a function as the <code class="notranslate">theme</code> prop to <code class="notranslate">MuiThemeProvider</code> the first parameter of that function is <code class="notranslate">outerTheme</code>. <code class="notranslate">outerTheme</code> should contain the actual theme properties.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><code class="notranslate">outerTheme</code> is <code class="notranslate">null</code>. Trying to access any property gives an error (of course): <code class="notranslate">Cannot read property 'whatever' of null</code>.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Even the <a href="https://material-ui-next.com/customization/themes/#typography" rel="nofollow">official example</a> from the docs doesn't work:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function theme(outerTheme) {
  return createMuiTheme({
    typography: {
      fontFamily:
        '-apple-system,system-ui,BlinkMacSystemFont,' +
        '&quot;Segoe UI&quot;,Roboto,&quot;Helvetica Neue&quot;,Arial,sans-serif',
      body1: {
        fontWeight: outerTheme.typography.fontWeightMedium, // &lt;-- Cannot read property 'typography' of null
      },
      button: {
        fontStyle: 'italic',
      },
    },
  });
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">theme</span><span class="pl-kos">(</span><span class="pl-s1">outerTheme</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-k">return</span> <span class="pl-en">createMuiTheme</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
    <span class="pl-c1">typography</span>: <span class="pl-kos">{</span>
      <span class="pl-c1">fontFamily</span>:
        <span class="pl-s">'-apple-system,system-ui,BlinkMacSystemFont,'</span> <span class="pl-c1">+</span>
        <span class="pl-s">'"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif'</span><span class="pl-kos">,</span>
      <span class="pl-c1">body1</span>: <span class="pl-kos">{</span>
        <span class="pl-c1">fontWeight</span>: <span class="pl-s1">outerTheme</span><span class="pl-kos">.</span><span class="pl-c1">typography</span><span class="pl-kos">.</span><span class="pl-c1">fontWeightMedium</span><span class="pl-kos">,</span> <span class="pl-c">// &lt;-- Cannot read property 'typography' of null</span>
      <span class="pl-kos">}</span><span class="pl-kos">,</span>
      <span class="pl-c1">button</span>: <span class="pl-kos">{</span>
        <span class="pl-c1">fontStyle</span>: <span class="pl-s">'italic'</span><span class="pl-kos">,</span>
      <span class="pl-kos">}</span><span class="pl-kos">,</span>
    <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Check it out on <a href="https://codesandbox.io/s/xrr7mvpm04" rel="nofollow">CodeSandbox</a>.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I wanted to overwrite the line height of <code class="notranslate">body2</code> with the line height of <code class="notranslate">body1</code></p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.23</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 63.0.3239.84</td>
</tr>
</tbody>
</table>