Skip to content

Commit 4efed64

Browse files
committed
fix: color of icon in card
1 parent 8353785 commit 4efed64

File tree

7 files changed

+28
-2
lines changed

7 files changed

+28
-2
lines changed
Binary file not shown.
Binary file not shown.

__tests__/example.spec.ts renamed to __tests__/render.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test.describe.parallel("bsky-widget - Image Snapshot Test", () => {
2525
await sleep(2000);
2626
await expect(page).toHaveScreenshot("baseline.png", {
2727
mask: [followers],
28-
maxDiffPixelRatio: 0.1,
28+
maxDiffPixelRatio: 0.00001,
2929
fullPage: true,
3030
});
3131
});
359 KB
Loading
207 KB
Loading

lib/template.abell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<img class="avatar" alt="{{ props.displayName }}'s Profile Picture" src="{{ props.avatar }}" width="80px" height="80px" />
1111
</div>
1212
<a class="bsky-button follow-button" href="https://bsky.app/profile/{{ props.handle }}" target="_blank">
13-
<svg fill="none" width="16" viewBox="0 0 24 24" height="16"><path fill="hsl(211, 20%, 95.3%)" fill-rule="evenodd" clip-rule="evenodd" d="M12 3a1 1 0 0 1 1 1v7h7a1 1 0 1 1 0 2h-7v7a1 1 0 1 1-2 0v-7H4a1 1 0 1 1 0-2h7V4a1 1 0 0 1 1-1Z"></path></svg>
13+
<svg fill="currentColor" width="16" viewBox="0 0 24 24" height="16"><path d="M12 3a1 1 0 0 1 1 1v7h7a1 1 0 1 1 0 2h-7v7a1 1 0 1 1-2 0v-7H4a1 1 0 1 1 0-2h7V4a1 1 0 0 1 1-1Z"></path></svg>
1414
<span class="text">Follow</span>
1515
</a>
1616
</div>

test.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>E2E Test Page</title>
7+
<style>
8+
bsky-widget.overriden-styles {
9+
--bsky-background: #000;
10+
--bsky-primary: #A157FE;
11+
--bsky-primary-hover: #ae75f3;
12+
--bsky-text-on-primary: #000;
13+
--bsky-text-on-background: #ddd;
14+
--bsky-text-on-background-dim: #ddd;
15+
--bsky-text-large: 1.5rem;
16+
--bsky-text-large-line-height: 1.9rem;
17+
--bsky-text-medium: 1.1rem;
18+
--bsky-text-small: 1rem;
19+
20+
/* Styles that can be overriden outside */
21+
font-family: Helvetica, sans-serif, -apple-system, sans-serif;
22+
width: 350px;
23+
max-width: 100%;
24+
min-height: 170px;
25+
display: inline-block;
26+
27+
box-shadow: 1px 1px 8px 1px #A157FE;
28+
border-radius: 16px;
29+
}
30+
</style>
31+
732
</head>
833

934
<body>
@@ -16,6 +41,7 @@
1641
show-description="false"
1742
></bsky-widget>
1843
<bsky-widget
44+
class="overriden-styles"
1945
data-handle="abelljs.org"
2046
data-show-description="false"
2147
show-banner="false"

0 commit comments

Comments
 (0)