Skip to content

Commit e36dad6

Browse files
authored
Merge pull request #488 from rackerlabs/surf-1568-hx-div-inherit-box-sizing
fix(#444): hx-div box-sizing inheritance
2 parents c0d8850 + f4400ef commit e36dad6

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

docs/components/box/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Box
33
minver: 0.2.0
44
also:
5+
components/box/test.html: Testing - Boxes
56
components/grid: Grid
67
components/layouts: Layouts
78
elements/hx-div: <hx-div>

docs/components/box/test.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Testing - Boxes
3+
---
4+
{% extends 'test.njk' %}
5+
{% block content %}
6+
<section>
7+
<nav class="hxBreadcrumb">
8+
<a href="components/box">Box</a>
9+
<hx-icon class="delimiter" type="angle-right"></hx-icon>
10+
<a href="#">{{page.title}}</a>
11+
</nav>
12+
</section>
13+
14+
<section>
15+
<header>
16+
<h2>Status inside Div</h2>
17+
</header>
18+
19+
<hx-div>
20+
<hx-status>hx-div &gt; hx-status</hx-status>
21+
</hx-div>
22+
</section>
23+
{% endblock %}

src/helix-ui/elements/HXDivElement.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import './HXElement';
2+
13
// @supports used to prevent IE from loading the ShadyCSS-rewritten styles.
24
// This is so we can write shorter, less-specific CSS selectors in order
35
// to apply ShadyCSS overrides in the LightDOM.

0 commit comments

Comments
 (0)