From 0163634abb8578ce7a3d7ceea36432e98ea70e78 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Fri, 19 Jan 2024 14:39:46 +0100 Subject: Restore original tighter line-height on `` titles (#1386) --- .changeset/eighty-cats-float.md | 13 +++++++++++++ packages/starlight/user-components/LinkCard.astro | 10 +++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .changeset/eighty-cats-float.md diff --git a/.changeset/eighty-cats-float.md b/.changeset/eighty-cats-float.md new file mode 100644 index 00000000..3a94a9d6 --- /dev/null +++ b/.changeset/eighty-cats-float.md @@ -0,0 +1,13 @@ +--- +'@astrojs/starlight': minor +--- + +Tightens `line-height` on `` titles to fix regression from original design + +If you want to preserve the previous `line-height`, you can add the following custom CSS to your site: + +```css +.sl-link-card a { + line-height: 1.6; +} +``` diff --git a/packages/starlight/user-components/LinkCard.astro b/packages/starlight/user-components/LinkCard.astro index aecbe572..8cf6fbd9 100644 --- a/packages/starlight/user-components/LinkCard.astro +++ b/packages/starlight/user-components/LinkCard.astro @@ -10,7 +10,7 @@ interface Props extends Omit, 'title'> { const { title, description, ...attributes } = Astro.props; --- -
+ -- cgit