Skip to content

Commit e721877

Browse files
authored
Merge pull request #209 from rackerlabs/fix-inline-icon-alignment
fix(hx-icon): correct alignment of <hx-icon>
2 parents 79a3980 + c2f2b8b commit e721877

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

docs/docs.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ min-version {
120120
background-color: @magenta-500;
121121
border-radius: 1em;
122122
color: @gray-0;
123+
display: inline-block;
123124
font-size: 0.75rem;
124125
font-weight: 400;
125126
line-height: 1;

src/helix-ui/styles/components/breadcrumbs.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,5 @@
2323
color: @gray-600;
2424
font-size: 0.5rem;
2525
margin-right: 0.5rem;
26-
27-
svg {
28-
fill: currentColor;
29-
stroke: none;
30-
}
3126
}
3227
}

src/helix-ui/styles/elements/hx-disclosure.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
hx-disclosure {
22
display: inline-block;
33

4+
> hx-icon.hxPrimary {
5+
height: 1em;
6+
}
7+
48
&[aria-expanded="true"] {
59
.menu-icon, // DEPRECATED: Remove in v1.0.0
610
> hx-icon.hxPrimary {

src/helix-ui/styles/elements/hx-icon.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ hx-icon {
33
color: inherit;
44
display: inline-block;
55
flex-shrink: 0;
6-
height: 1em;
6+
height: auto;
77
line-height: 1;
8-
vertical-align: initial;
8+
vertical-align: middle;
99
width: 1em;
1010

1111
svg {
1212
fill: currentColor;
13+
height: 1em; // because IE
1314
stroke: none;
1415
}
1516
}

src/helix-ui/styles/elements/hx-tile.less

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,15 @@ hx-tile {
4242

4343
.hx-tile-icon {
4444
hx-icon {
45-
height: 1.75rem;
46-
width: 1.75rem;
45+
font-size: 1.75rem;
4746
}
4847
}
4948

5049
hx-icon[type="checkmark"] {
5150
display: none;
52-
height: 1rem;
51+
font-size: 1rem;
5352
right: 1.25rem;
5453
top: 1.25rem;
55-
width: 1rem;
5654
}
5755

5856
&.hxSubdued {

0 commit comments

Comments
 (0)