Skip to content

Conversation

@patch0
Copy link
Contributor

@patch0 patch0 commented Nov 18, 2025

In #1264 we added a typography.style-1() to the .cm-scroller class in the EditorPanel css, which unwittingly prevented font sizes from taking effect.

This PR reverts that, but also tidies up the styling to use Design System typography styles instead, so line spacing etc goes with it.

Also removes the $space-0-5 var in favour of the Design System vars.

e.g.

Small:
image

Medium:
image

Large:
image

Copy link
Contributor

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 PR fixes an issue where font size changes were not taking effect in the EditorPanel due to a typography.style-1() mixin being applied to the .cm-scroller class. The changes migrate the styling to use Design System typography styles consistently.

  • Removes the problematic typography.style-1() from .cm-scroller that was preventing font size changes
  • Migrates from local SCSS font-size mixins to Design System typography mixins for size modifiers
  • Replaces SCSS spacing variables with CSS custom properties for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@danhalson danhalson left a comment

Choose a reason for hiding this comment

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

LGTM

@patch0 patch0 merged commit 7fe15a0 into main Nov 18, 2025
8 checks passed
@patch0 patch0 deleted the fix-font-size branch November 18, 2025 18:02
@patch0 patch0 mentioned this pull request Nov 18, 2025
patch0 added a commit that referenced this pull request Nov 18, 2025
## [0.34.1] - 2025-11-18

### Fixed

- Font size selection now works in the web component (#1277)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants