feat(data): even corners and descriptions under titles in phone section headings (#66679)

This commit is contained in:
David Hill 2026-11-26 15:39:15 -06:00 • committed by GitHub
parent 3fa1bbac8a
commit d0ccd5a00a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 2 deletions

View file

@ -8272,10 +8272,25 @@ body {
[data-page="stats"] [data-slot="section-heading-row"] {
flex-direction: column;
gap: 12px;
gap: 36px;
margin-bottom: 32px;
}
/* A section whose heading has controls starts them as far below its top line as they are from its right edge. */
[data-page="stats"] [data-section]:has(> [data-slot="section-heading-row"]) {
padding-top: 24px;
}
/* Each description on its own line under its title, the title's full stop dropped. */
[data-page="stats"] h2:has(> strong > [data-slot="heading-link"]) > span {
display: block;
margin-top: 4px;
}
[data-page="stats"] [data-slot="heading-stop"] {
display: none;
}
[data-page="stats"] [data-slot="section-heading-row"] > h2 {
margin-bottom: 0;
}
@ -8284,6 +8299,7 @@ body {
[data-page="stats"] [data-slot="section-heading-row"] > :not(h2) {
order: -1;
align-self: flex-end;
margin-top: 0;
}
[data-page="stats"] [data-slot="section-heading-row"] > [data-component="usage-filter"] {

View file

@ -16,7 +16,7 @@ export function SectionHeading(props: {
#
</span>
{props.title}
{props.description ? "." : ""}
{props.description && <span data-slot="heading-stop">.</span>}
</a>
</strong>
{props.description && (