Skip to content

add display css variable for html preview link#1412

Merged
mwtrew merged 4 commits intomainfrom
add-display-var-for-html-preview
Apr 2, 2026
Merged

add display css variable for html preview link#1412
mwtrew merged 4 commits intomainfrom
add-display-var-for-html-preview

Conversation

@cocomarine
Copy link
Copy Markdown
Contributor

@cocomarine cocomarine commented Mar 31, 2026

Adds the display property to the a.htmlrunner-link class for HtmlRunner.
This is to enable / disable the HTML preview link.
The link is currently broken in CCP due to the use of relative link for the preview and we would like to disable it until it gets fixed (hopefully in the issue https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1264)

Before:
Screenshot 2026-03-31 at 11 39 23
Screenshot 2026-03-31 at 11 51 24

After with --editor-htmlrunner-link-display: none:
Screenshot 2026-03-31 at 11 39 46
Screenshot 2026-03-31 at 11 51 55

Copilot AI review requested due to automatic review settings March 31, 2026 10:41
@cocomarine cocomarine temporarily deployed to previews/1412/merge March 31, 2026 10:41 — with GitHub Actions Inactive
Copy link
Copy Markdown
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

Adds a CSS custom property hook to control the visibility/layout of the HTML runner “open in new tab” preview link.

Changes:

  • Narrow the selector from .htmlrunner-link to a.htmlrunner-link.
  • Introduce --editor-htmlrunner-link-display to control the link’s display value.

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

@cocomarine cocomarine temporarily deployed to previews/1412/merge March 31, 2026 10:55 — with GitHub Actions Inactive
@cocomarine cocomarine temporarily deployed to previews/1412/merge March 31, 2026 14:00 — with GitHub Actions Inactive
@zetter-rpf zetter-rpf requested a review from mwtrew April 1, 2026 07:56
@zetter-rpf
Copy link
Copy Markdown
Contributor

I assigned @mwtrew to review as he's currently looking at the HTML editor

@adrian-rpf
Copy link
Copy Markdown
Contributor

Group reviewed and approved

@mwtrew mwtrew merged commit d856807 into main Apr 2, 2026
7 checks passed
@mwtrew mwtrew deleted the add-display-var-for-html-preview branch April 2, 2026 09:24
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.

5 participants