Skip to content

Fix: Add missing _color.less variables to schemas (fixes #542)#586

Merged
oliverfoster merged 1 commit intomasterfrom
issue/542
Apr 13, 2026
Merged

Fix: Add missing _color.less variables to schemas (fixes #542)#586
oliverfoster merged 1 commit intomasterfrom
issue/542

Conversation

@swashbuck
Copy link
Copy Markdown
Contributor

Fixes #542

Fix

  • Added 8 missing LESS colour variables to both schema/theme.schema.json (modern, draft 2020-12) and properties.schema (legacy, draft-04)

Variables added from issue #542:

  • body-background-color — added to _global section
  • drawer-item-selected-underline — added to _drawer section
  • pull-quote, pull-quote-inverted, pull-quote-border — added in new _pullQuote section
  • shadow-opacity — added to _misc section (as text input, not colour picker, since it accepts a percentage value e.g. 50%)

Additional missing variables identified during review:

  • tooltip-color, tooltip-text-color — added in new _tooltip section

Testing

  1. Load the course in the Adapt Authoring Tool
  2. Navigate to Theme settings → Colours
  3. Verify the following new fields appear in their respective sections:
    • Global: Body background colour
    • Drawer: Drawer item colour - selected underline
    • Pull Quote (new section): Pull quote background colour, Pull quote text colour, Pull quote border colour
    • Miscellaneous: Shadow opacity (text input)
    • Tooltip (new section): Tooltip background colour, Tooltip text colour
  4. Set values for each and confirm they override the corresponding LESS variables in the built output

Copy link
Copy Markdown
Contributor

@kirsty-hames kirsty-hames left a comment

Choose a reason for hiding this comment

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

👀

@oliverfoster oliverfoster merged commit 428870f into master Apr 13, 2026
1 check passed
@oliverfoster oliverfoster deleted the issue/542 branch April 13, 2026 10:14
@github-project-automation github-project-automation Bot moved this from Needs Reviewing to Recently Released in adapt_framework: The TODO Board Apr 13, 2026
github-actions Bot pushed a commit that referenced this pull request Apr 13, 2026
# [9.36.0](v9.35.0...v9.36.0) (2026-04-13)

### Update

* Add missing _color.less variables to schemas (fixes #542) (#586) ([428870f](428870f)), closes [#542](#542) [#586](#586)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 9.36.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

Status: Recently Released

Development

Successfully merging this pull request may close these issues.

Add missing _color.less variables to schemas

3 participants