<ul dir="auto">
<li>[X ] 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 Behaviour</h2>
<p dir="auto">No error in ESLint<br>
Alternatively: Clicking the icon -&gt; expands the card</p>
<p dir="auto">handleExpandChange = (expanded) =&gt; {<br>
^<br>
this.setState({expanded: expanded});<br>
};</p>
<p dir="auto">Error: Unexpected Token, fatal error (on the word expanded)</p>
<h2 dir="auto">Current Behaviour</h2>
<p dir="auto">ES Lint provides fatal error.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/z3y0624rr3" rel="nofollow">https://codesandbox.io/s/z3y0624rr3</a></p>
<ol dir="auto">
<li>Take the above sandbox</li>
<li>Put it in Atom 1.22.1 with Linter-eslint 8.4.1</li>
<li>Get error<br>
However, the code works.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I managed to fix the esLinter error by using the commented out code in the sandbox.</p>
<p dir="auto">However: this creates a different bug: The icon is prevented from being able to expand the code. The Card Header is still able to expand the code. Uncomment the code to reproduce (and comment out handleExpandChange)</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>0.20.0"</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
<tr>
<td>browser</td>
<td>64.0.3282.167</td>
</tr>
<tr>
<td>etc</td>
<td>Atom 1.22.1 with Linter-eslint 8.4.1</td>
</tr>
</tbody>
</table>
<p dir="auto">Thanks</p>
<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">I was expecting that <code class="notranslate">body2</code> type in Typography will use same element as <code class="notranslate">body1</code> which is a <code class="notranslate">p</code> element for body1.</p>
<h2 dir="auto">Current Behavior</h2>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Typography type=&quot;body1&quot;&gt; Lorem ipsum &lt;/Typography&gt; // this uses a `p` element
&lt;Typography type=&quot;body2&quot;&gt; Lorem ipsum &lt;/Typography&gt; // this uses an `aside` element"><pre class="notranslate"><code class="notranslate">&lt;Typography type="body1"&gt; Lorem ipsum &lt;/Typography&gt; // this uses a `p` element
&lt;Typography type="body2"&gt; Lorem ipsum &lt;/Typography&gt; // this uses an `aside` element
</code></pre></div>
<p dir="auto">As a result, the <code class="notranslate">nowrap</code> attribute doesn't work on body2 types.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Typography type=&quot;body2&quot; nowrap&gt; {bigString} &lt;/Typography&gt; // Does not work"><pre class="notranslate"><code class="notranslate">&lt;Typography type="body2" nowrap&gt; {bigString} &lt;/Typography&gt; // Does not work
</code></pre></div>
<p dir="auto">Following also does not work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Typography type=&quot;body2&quot; component=&quot;p&quot; nowrap&gt; {bigString} &lt;/Typography&gt;"><pre class="notranslate"><code class="notranslate">&lt;Typography type="body2" component="p" nowrap&gt; {bigString} &lt;/Typography&gt;
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>

<ol dir="auto">
<li>Add a typography component</li>
<li>Add property <code class="notranslate">nowrap</code> to the compnent</li>
<li>Set the type property of the component to <code class="notranslate">body2</code></li>
<li></li>
</ol>
<h2 dir="auto">Context</h2>

<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 beta 29</td>
</tr>
<tr>
<td>React</td>
<td></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>