-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
refactor: replaced font
leftovers of release 2.x
#4695
Conversation
…g-default-mappings-for-headlines
There was a problem hiding this 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
andline-height
properties withfont
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> |
There was a problem hiding this comment.
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.
<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.
Proposed changes
Resolves #4652
Types of changes
Further comments