Skip to content

Commit 1082752

Browse files
committed
style: match hero section background color with version spans (#eee); add bg-version class
1 parent caa39a4 commit 1082752

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

assets/stylesheets/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ body {
1818
padding-bottom: 70px;
1919
}
2020

21+
.bg-version {
22+
background-color: #eee;
23+
}
24+
2125
.version {
2226
font-family: monospace;
2327
padding: 0.5rem 1rem;

dev/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</div>
6565
</nav>
6666

67-
<div class="py-5 px-4 my-5 text-center bg-body-tertiary rounded-3">
67+
<div class="py-5 px-4 my-5 text-center bg-version rounded-3">
6868
<h1>
6969
<span class="cadeoleo-baby-1"></span>
7070
Cadê o Léo!

dev/index_en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</div>
6565
</nav>
6666

67-
<div class="py-5 px-4 my-5 text-center bg-body-tertiary rounded-3">
67+
<div class="py-5 px-4 my-5 text-center bg-version rounded-3">
6868
<h1>
6969
<span class="cadeoleo-baby-1"></span>
7070
Where's Leo!

test/e2e/version-style.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ test.describe('Version span style', () => {
1515
expect(bgColor).toBe('rgb(238, 238, 238)'); // #eee
1616
});
1717

18-
test('hero section should have gray background via Bootstrap bg-body-tertiary', async ({ page, baseURL }) => {
18+
test('hero section should have same gray background as version spans', async ({ page, baseURL }) => {
1919
await page.goto(baseURL + '/');
20-
const hero = await page.locator('.bg-body-tertiary').first();
21-
await expect(hero).toBeVisible();
22-
// Just verify the class exists and element is visible
20+
const hero = await page.locator('.bg-version').first();
21+
const bgColor = await hero.evaluate(el => getComputedStyle(el).backgroundColor);
22+
expect(bgColor).toBe('rgb(238, 238, 238)'); // #eee - same as .version
2323
});
2424
});

0 commit comments

Comments
 (0)