Skip to content

Commit 2c9642f

Browse files
committed
Fix links without href
1 parent 233513c commit 2c9642f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/scrollycoding/src/focus.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function AnchorOrFocus({
107107
href,
108108
...props
109109
}: any) {
110-
if (!href.startsWith("focus://")) {
110+
if (!href?.startsWith("focus://")) {
111111
return React.createElement(type, { href, ...props })
112112
}
113113

packages/scrollycoding/src/index.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@
2626
}
2727

2828
/* content steps */
29-
.ch-hike-step {
29+
.ch-hike-fluid .ch-hike-step {
3030
display: flex;
3131
min-height: 350px;
3232
justify-content: center;
3333
flex-flow: column;
34-
// outline: 2px solid red;
3534
}
3635

3736
.ch-hike-step-gap {
@@ -54,10 +53,13 @@
5453
}
5554

5655
.ch-hike-step-content > :first-child {
57-
// TODO reset for mobile
5856
margin-top: 0;
5957
}
6058

59+
.ch-hike-step-content > :last-child {
60+
margin-bottom: 0;
61+
}
62+
6163
.ch-hike-step-content-focused {
6264
// border-color: #81d8f7;
6365
border-color: #252526;

0 commit comments

Comments
 (0)