Skip to content

Commit 15644e4

Browse files
author
Ian Wensink
committed
fix(styled-components): fix wizard step alignment issues
1 parent ed101b3 commit 15644e4

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/Wizard/WizardProgress/styled/bar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export default styled.ul`
55
margin: 0 0 calc(2 * ${p => p.theme.spacingUnit}) 0;
66
padding: 0;
77
width: calc(100% - 15px);
8+
line-height: 1em;
89
`;

src/Wizard/WizardProgress/styled/step-number.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled from 'styled-components';
22

33
export default styled.span`
44
margin-right: 5px;
5+
line-height: 1em;
56
67
@media (min-width: 768px) {
78
display: none;

src/Wizard/WizardProgress/styled/step.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ export default styled.li`
1616
&::before {
1717
position: absolute;
1818
content: '';
19-
top: 0;
19+
top: -1px;
2020
left: 0;
2121
border-left: 20px solid #fff;
22-
border-bottom: 22.5px solid transparent;
23-
border-top: 22.5px solid transparent;
22+
border-bottom: 23.5px solid transparent;
23+
border-top: 23.5px solid transparent;
2424
clear: both;
2525
}
2626
2727
&::after {
2828
position: absolute;
2929
content: '';
30-
top: 0;
31-
right: -20px;
30+
top: -1px;
31+
right: -19px;
3232
border-left: 20px solid #f4f4f4;
33-
border-bottom: 22.5px solid transparent;
34-
border-top: 22.5px solid transparent;
33+
border-bottom: 23.5px solid transparent;
34+
border-top: 23.5px solid transparent;
3535
clear: both;
3636
}
3737

0 commit comments

Comments
 (0)