Skip to content

Commit 2346b8a

Browse files
yepzdkclaude
andcommitted
fix: improve mock button hover contrast
The "Åbn prototypen" button text was nearly invisible on hover because VitePress's default `.vp-doc a` link styles outweighed `.mock-button` on specificity, leaving the label brand-colored on a brand-colored background. Raise specificity so white text and no underline win on hover. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9e5b412 commit 2346b8a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Mock button (`Åbn prototypen`) hover state — text now stays white against the brand background instead of inheriting the default link color, which made the label nearly invisible
11+
912
### Added — Opkrævningsoverblik BBR-beregner
1013
- New "Beregner" tab in the Opkrævningsoverblik prototype that calculates four BBR-driven municipal fees: rottebekæmpelse (with the >250 m² rate split), renovation, skorstensfejer, and ejendomsskat (grundskyld)
1114
- Editable mock-BBR data (grundareal, grundværdi, bygninger med type/m²/ildsteder) per test user with per-field reset and live recalculation

docs/.vitepress/theme/custom.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
margin-bottom: 8px;
3535
}
3636

37-
.mock-button {
37+
.mock-button,
38+
.vp-doc a.mock-button {
3839
display: inline-block;
3940
padding: 8px 16px;
4041
border: 1px solid var(--vp-c-brand-1);
@@ -45,9 +46,11 @@
4546
transition: background-color 0.2s, color 0.2s;
4647
}
4748

48-
.mock-button:hover {
49+
.mock-button:hover,
50+
.vp-doc a.mock-button:hover {
4951
background-color: var(--vp-c-brand-1);
5052
color: #fff;
53+
text-decoration: none;
5154
}
5255

5356
.VPFeature .VPImage {

0 commit comments

Comments
 (0)