Skip to content

Commit c58274e

Browse files
author
Ryan A. Johnson
committed
fix(CSS): remove margins on positioned elements
1 parent b5cba26 commit c58274e

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ hx-menu {
1414
&:extend(.hxBox-sm);
1515

1616
display: block;
17+
margin: 0;
1718
}
1819

1920
> section {
2021
display: block;
21-
22+
2223
header {
2324
color: @gray-600;
2425
font-size: 0.875rem;
2526
font-weight: 500;
2627
text-transform: uppercase;
2728
}
28-
29+
2930
+ section {
3031
margin-top: 0.5rem;
3132
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ hx-popover {
2727
&[open] {
2828
display: flex;
2929
flex-direction: column;
30+
margin: 0;
3031
}
3132

3233
& > &-head {

src/helix-ui/styles/elements/hx-search-assistance.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ hx-search-assistance {
33

44
&[open] {
55
display: block;
6+
margin: 0;
67
}
78
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ hx-tooltip {
2727

2828
&[open] {
2929
display: block;
30+
margin: 0;
3031
}
3132
}

src/helix-ui/styles/overrides.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
p {
1313
margin: 0;
1414

15+
// FIXME: this has the potential to throw off alignment
16+
// of fixed position elements like tooltips and popovers
1517
& + * {
1618
margin-top: 0.5rem;
1719
}

0 commit comments

Comments
 (0)