Skip to content

refactor: replaced font leftovers of release 2.x #4695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mfranzke
Copy link
Collaborator

@mfranzke mfranzke commented Aug 6, 2025

Proposed changes

Resolves #4652

Types of changes

  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improvements to existing components or architectural decisions)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Further comments

@mfranzke mfranzke self-assigned this Aug 6, 2025
@mfranzke mfranzke requested a review from nmerget as a code owner August 6, 2025 15:31
@mfranzke mfranzke added the 📕documentation Improvements or additions to documentation label Aug 6, 2025
@mfranzke mfranzke added the 🍄🆙improvement New feature or request label Aug 6, 2025
Copy link
Contributor

github-actions bot commented Aug 6, 2025

@mfranzke mfranzke moved this to 👀 In review in UX Engineering Team Backlog Aug 6, 2025
@mfranzke mfranzke removed their assignment Aug 6, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This refactor consolidates font-related CSS custom properties by replacing separate font-size and line-height declarations with a single font shorthand property. The changes eliminate leftovers from release 2.x that used individual font properties.

  • Replaces separate font-size and line-height properties with font shorthand across multiple files
  • Updates code examples and documentation to reflect the new consolidated approach
  • Simplifies CSS declarations by reducing two properties to one

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
showcases/patternhub/styles/decision-tree.scss Updates h2 styles to use consolidated font property
showcases/patternhub/pages/foundations/font-sizes/overview.tsx Updates code examples and inline styles to use font shorthand
packages/foundations/docs/FontsSizes.md Updates documentation example to show font shorthand usage

<code>--db-type-headline-font-size-XX</code>
<br />
<code>--db-type-headline-line-height-XX</code>
<code>--db-type-headline-XX</code>
Copy link
Preview

Copilot AI Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation should clarify what properties are included in the --db-type-headline-XX shorthand property. Users migrating from the old individual properties need to understand that this includes both font-size and line-height.

Suggested change
<code>--db-type-headline-XX</code>
<code>--db-type-headline-XX</code>
<span style={{ display: 'block', marginTop: 4 }}>
<em>
This shorthand custom property sets both <code>font-size</code> and <code>line-height</code>.
</em>
</span>

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📕documentation Improvements or additions to documentation 🍄🆙improvement New feature or request postReview
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

Outdated documentation about overwriting default mappings for headlines
1 participant