Skip to content

Commit 81ab6d7

Browse files
committed
add ability to link to a particular mascot
1 parent 30d68ed commit 81ab6d7

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

app/components/mascots/mascot-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ul class="unstyled grid {{if (eq @display "small") "sm:grid-2 lg:grid-3" "sm:grid-1 lg:grid-2"}}">
22
{{#each @mascots as |mascot|}}
3-
<li id={{mascot.id}} data-test-mascot>
3+
<li data-test-mascot>
44
<Mascots::MascotList::Item
55
@mascot={{mascot}}
66
/>

app/components/mascots/mascot-list/item.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<figure>
1+
<figure class="mascot-item" id={{@mascot.id}}>
22
<div class="well well-1/1">
33
<ResponsiveImage
44
@src="/images/tomsters/{{@mascot.image}}"

app/styles/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@import "components/team-list.css";
1414
@import "components/terminal-code.css";
1515
@import "components/callout-banner.css";
16+
@import "components/mascots.css";
1617
@import "legacy/form.css";
1718

1819
@media only percy {

app/styles/components/mascots.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.mascot-item:target .well {
2+
border: 2px solid var(--color-brand-40);
3+
}

0 commit comments

Comments
 (0)