Skip to content

Commit f9e5425

Browse files
committed
v.5.3.8
1 parent 41bc866 commit f9e5425

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/docs/6-simple-components/tables/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ <h2 id="oversized-tables" tabindex="-1">Oversized tables</h2>
902902
</tbody>
903903
</table>
904904
</div>
905-
<p>Are you have a situation where there is (or is going to be) multiple oversized, layout-breaking tables? Then you can add some JavaScript to your template, that automatically adds this <code>overflow-x</code> wrapper to all tables that have the <code>table</code> class.</p>
905+
<p>If you have a situation where there is (or is going to be) multiple oversized, layout-breaking tables, then you can add some JavaScript to your template, that automatically adds this <code>overflow-x</code> wrapper to all tables that have the <code>table</code> class.</p>
906906
<p>Here’s one way of doing that:</p>
907907
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript"><br> <span class="token punctuation">(</span><span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><br><br> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token function">forEach</span><span class="token punctuation">.</span><span class="token function">call</span><span class="token punctuation">(</span>document<span class="token punctuation">.</span><span class="token function">querySelectorAll</span><span class="token punctuation">(</span><span class="token string">'.table'</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">el</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><br> <span class="token keyword">var</span> table <span class="token operator">=</span> el<span class="token punctuation">.</span>outerHTML<span class="token punctuation">;</span><br> <span class="token keyword">var</span> tableWrapped <span class="token operator">=</span> <span class="token string">'&lt;div class="overflow-x mb-2">'</span> <span class="token operator">+</span> table <span class="token operator">+</span> <span class="token string">'&lt;/div>'</span><span class="token punctuation">;</span><br> el<span class="token punctuation">.</span>outerHTML <span class="token operator">=</span> tableWrapped<span class="token punctuation">;</span><br> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span><br><br> <span class="token punctuation">}</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><br></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span></code></pre>
908908

src/docs/6-simple-components/tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ Codebase `overflow-x` uses to remove margins from around Codebase table classes
392392
</table>
393393
</div>
394394

395-
Are you have a situation where there is (or is going to be) multiple oversized, layout-breaking tables? Then you can add some JavaScript to your template, that automatically adds this `overflow-x` wrapper to all tables that have the `table` class.
395+
If you have a situation where there is (or is going to be) multiple oversized, layout-breaking tables, then you can add some JavaScript to your template, that automatically adds this `overflow-x` wrapper to all tables that have the `table` class.
396396

397397
Here’s one way of doing that:
398398

0 commit comments

Comments
 (0)