Skip to content

Commit b61c2d4

Browse files
committed
Allow linking to additional features headings
This is possible on the previous release pages, but for some reason wasn't implemented for PHP 8.5.
1 parent ffea6bc commit b61c2d4

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

releases/8.5/release.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ PHP
686686
<div class="release-notes-grid-container">
687687
<div class="release-notes-grid">
688688
<div>
689-
<h2><?= message('new_classes_title', $lang) ?></h2>
689+
<h2 id="additional-improvements"><?= message('new_classes_title', $lang) ?></h2>
690690
<ul class="new">
691691
<li><?= message('fatal_error_backtrace', $lang) ?></li>
692692
<li><?= message('const_attribute_target', $lang) ?></li>
@@ -712,7 +712,7 @@ PHP
712712
</ul>
713713
</div>
714714
<div>
715-
<h2><?= message('bc_title', $lang) ?></h2>
715+
<h2 id="deprecations-and-bc-breaks"><?= message('bc_title', $lang) ?></h2>
716716
<ul class="old">
717717
<li><?= message('bc_backtick_operator', $lang, [
718718
'<a href="/manual/' . $documentation . '/function.shell-exec.php"><code>shell_exec()</code></a>'

styles/php85.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ code[class*=language-], pre[class*=language-] {
7575
}
7676

7777
.features-title h2,
78+
.release-notes h2,
7879
.before-and-after-title-and-description h2 {
7980
position: relative;
8081
overflow: visible;
8182
display: inline-block;
8283
}
8384

8485
.features-title h2 .genanchor,
86+
.release-notes h2 .genanchor,
8587
.before-and-after-title-and-description h2 .genanchor {
8688
position: absolute;
8789
top: 4px;
@@ -97,11 +99,13 @@ code[class*=language-], pre[class*=language-] {
9799
}
98100

99101
.dark .features-title h2 .genanchor,
102+
.dark .release-notes h2 .genanchor,
100103
.dark .before-and-after-title-and-description h2 .genanchor {
101104
background: url("/images/php8/anchor-white.svg") scroll no-repeat left center / 21px 16px transparent;
102105
}
103106

104107
.features-title h2:hover .genanchor,
108+
.release-notes h2:hover .genanchor,
105109
.before-and-after-title-and-description h2:hover .genanchor {
106110
display: block;
107111
}
@@ -2170,7 +2174,6 @@ header nav {
21702174
}
21712175

21722176
.release-notes ul {
2173-
margin-top: calc(var(--spacing) * 6);
21742177
margin-left: calc(var(--spacing) * 4);
21752178
list-style-type: disc
21762179
}

0 commit comments

Comments
 (0)