Skip to content

Commit adcb973

Browse files
committed
fix(ui): restore default navbar-link padding for dropdown carets
Remove the supplemental padding-right override so Antora UI bundle spacing (2.5em) applies. Document in CHANGELOG and changelog-details.
1 parent 70ffa6d commit adcb973

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
88

99
Entries below are in **chronological order** by date: prior release, then the **2026-03-04** org creation and repository move, then the next release.
1010

11+
== Unreleased
12+
13+
* Restore default Antora UI spacing between navbar dropdown labels and the caret: removed the `navbar-link` `padding-right` override so the bundled UI rule (`2.5em`) applies unchanged.
14+
* link:changelog-details/2026-04-12%20-%20navbar-link%20default%20padding.adoc[Detailed note — 2026-04-12]
15+
1116
== [0.1.0] - 2026-01-29
1217

1318
First public release: dark mode toggle and supplemental styling for the Antora default UI, FOUC prevention, system preference and `localStorage`, example playbooks, and documentation.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
= Navbar dropdown link spacing
2+
3+
The supplemental stylesheet had overridden `.navbar .navbar-link` with `padding-right: 2.25rem`, which pulled the dropdown caret closer to the label than the Antora default UI bundle (`.navbar-link { padding-right: 2.5em }` in bundled `site.css`).
4+
5+
That block was removed so dropdown labels keep the same text-to-caret spacing as stock Antora UI.

supplemental-ui/css/site-extra.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ html.dark-theme .navbar .navbar-dropdown .navbar-item:hover {
4747
background-color: #1f2125;
4848
}
4949

50-
/* Bring dropdown carets closer to the label text (enough gap so caret doesn’t overlap) */
51-
.navbar .navbar-link {
52-
padding-right: 2.25rem;
53-
}
54-
5550
html.dark-theme .navbar .button,
5651
html.dark-theme .navbar .button.is-primary {
5752
background-color: #2c2e33;

0 commit comments

Comments
 (0)