Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d047172

Browse files
committed
Make tab anchor
1 parent 4b15a7e commit d047172

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/Demo.elm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,16 @@ topbar model =
141141

142142
snippetTab : Showcase -> Showcase -> Html Msg
143143
snippetTab activeShowcase showcase =
144-
div
144+
Html.a
145145
[ classList
146146
[ ( "tab", True )
147147
, ( "tab--active", showcase == activeShowcase )
148148
]
149+
, Route.href <| ShowcasePage showcase
149150
]
150-
[ Html.a [ Route.href <| ShowcasePage showcase ]
151-
[ showcase
152-
|> getShowcaseTitle
153-
|> text
154-
]
151+
[ showcase
152+
|> getShowcaseTitle
153+
|> text
155154
]
156155

157156

‎stylesheets/tab.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
cursor: default;
2222
border-bottom: 3px solid var(--color-red--500);
2323
}
24+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /