Skip to content

Commit aafff02

Browse files
authored
Avoid GitHub logo placeholder background (#39)
1 parent 80a9d1e commit aafff02

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://yield.operatorstack.systems/">
3-
<img src="https://raw.githubusercontent.com/operatorstack/yield/main/assets/yield-mark.svg" width="96" height="96" alt="Yield" />
3+
<img src="https://raw.githubusercontent.com/operatorstack/yield/main/assets/yield-mark.svg" alt="Yield" />
44
</a>
55
</p>
66

assets/yield-mark.svg

Lines changed: 1 addition & 1 deletion
Loading

scripts/readme.test.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ test("README uses the borderless Yield mark", async () => {
100100
]);
101101
assert.match(
102102
readme,
103-
/<img src="https:\/\/raw\.githubusercontent\.com\/operatorstack\/yield\/main\/assets\/yield-mark\.svg" width="96" height="96" alt="Yield" \/>/,
103+
/<img src="https:\/\/raw\.githubusercontent\.com\/operatorstack\/yield\/main\/assets\/yield-mark\.svg" alt="Yield" \/>/,
104104
);
105+
assert.doesNotMatch(readme, /yield-mark\.svg" width=/);
105106
assert.doesNotMatch(readme, /apple-touch-icon\.png/);
106-
assert.match(mark, /viewBox="0 0 60 60"/);
107+
assert.match(mark, /width="96" height="96" viewBox="0 0 60 60"/);
107108
assert.match(mark, /<path d="M18 1h24C53\.4 1 59 6\.6 59 18v24c0 11\.4-5\.6 17-17 17H18C6\.6 59 1 53\.4 1 42V18C1 6\.6 6\.6 1 18 1Z" fill="#fff" stroke="#e5e6e3" stroke-width="\.75"\/>/);
108109
assert.doesNotMatch(mark, /<rect\b/);
109110
assert.doesNotMatch(mark, /stroke="#d7d7d1"/);

0 commit comments

Comments
 (0)