Skip to content

Commit 1044fe4

Browse files
fix: correct colours, correctly change padding when hiring banner closed
1 parent c94b2db commit 1044fe4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/HiringBanner.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
<script>
99
const closeHiringBanner = () => {
10-
document.documentElement.style.setProperty("--hiring-banner-height", "0")
10+
// we have to specify unit here for this value to be valid in calc() calls
11+
document.documentElement.style.setProperty("--hiring-banner-height", "0rem")
1112
document.getElementById("hiring-banner").remove()
1213
}
1314

@@ -29,7 +30,7 @@
2930
padding: 0 0.5rem;
3031
height: var(--hiring-banner-height);
3132
width: 100%;
32-
background-color: var(--color-secondary-red);
33+
background-color: var(--color-alert-red);
3334
}
3435

3536
a {

src/layouts/Layout.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ const { title } = Astro.props
4747
--color-secondary-green: #d8f0e2;
4848
--color-secondary-orange: #fff0e2;
4949
--color-secondary-purple: #e4e6fc;
50-
--color-secondary-red: #ba4943;
50+
--color-secondary-red: #fff6f5; /* used in how we work pg */
5151
--color-secondary-blue: #ebf3fe;
5252
--color-secondary-peach: #fdf2e9;
5353

5454
--color-tertiary-green: #1b8043;
55+
--color-alert-red: #ba4943;
5556

5657
--background-color: #ffffff;
5758
--text-color-primary: var(--color-primary-black);

0 commit comments

Comments
 (0)