Skip to content

docs: reference $base-font-sizes instead of removed $font-base-size - #5889

Open
Samakshg11 wants to merge 1 commit into
canonical:mainfrom
Samakshg11:fix/font-settings-doc-reference
Open

Samakshg11 wants to merge 1 commit into
canonical:mainfrom
Samakshg11:fix/font-settings-doc-reference

Conversation

@Samakshg11

Copy link
Copy Markdown

Fixes #5375

The font settings documentation listed $font-base-size, but that variable no longer exists after the font variable refactor. The current setting is the $base-font-sizes map defined in scss/_settings_font.scss.

Changes

  • Replaced the stale $font-base-size row with $base-font-sizes and its actual default values
  • Added a short note explaining that base is the default body font size and large is used on larger screens when $increase-font-size-on-larger-screens is enabled

QA

  • Visit /docs/settings/font-settings and confirm the page no longer references a non-existent variable
  • Confirm the documented defaults match the source: base: 1rem, large: 1.125rem
  • npx prettier --check templates/docs/settings/font-settings.md passes
  • npx markdown-spellcheck templates/docs/settings/font-settings.md -r -n -a --en-gb passes

Release checklist

  • Documentation-only change: no CSS output, class names or macro API changes
  • No version bump or releases.yml entry required

The font settings page listed $font-base-size, which no longer exists after the font variable refactor. Replace it with $base-font-sizes and document its default map values and purpose.

Fixes canonical#5375
@webteam-app

Copy link
Copy Markdown

Samakshg11 is not a collaborator of the repo

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs reference non-existing setting font-base-size

2 participants