Skip to content

fix: properly exposes scss for reuse - #79

Merged
jmikrut merged 1 commit into
masterfrom
fix/scss-export
Feb 23, 2021
Merged

jmikrut merged 1 commit into
masterfrom
fix/scss-export

Conversation

@jmikrut

@jmikrut jmikrut commented Feb 23, 2021

Copy link
Copy Markdown
Member

Description

Fixes the way that SCSS variables are exposed and also removes reliance on CSS variables in the admin panel's entry point file. The entry component does not re-render, which means that if the CSS variables are not set before first render, their values will not be able to be used.

  • I have read and understand the CONTRIBUTING.md document in this repository

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Existing test suite passes locally with my changes

@jmikrut
jmikrut merged commit b1c8ac9 into master Feb 23, 2021
@denolfe
denolfe deleted the fix/scss-export branch July 7, 2022 02:37
yashrajsharan18 added a commit to yashrajsharan18/payload that referenced this pull request Aug 8, 2026
Dynogic added a commit to Dynogic/payload that referenced this pull request Sep 5, 2026
… and tabs, stamped as data-width-tier

A collection/global declares its document view's width tier
(form 950 | wide 1280 | editor 1600 | fullbleed) via admin.custom.widthTier;
a tab overrides it while active via tab.admin.custom.widthTier.
DocumentFields stamps the resolved tier on .document-fields (never inside a
drawer, never in the live-preview pane); TabContent stamps the active tab's
tier on its content div (SSR-correct via payloadcms#78) and finally applies
tab.admin.className. SCSS caps + centers .document-fields, letting any
descendant stamp override the root's tier (widest wins); the form tier
fixes a 638px fields column beside a reserved side column. Tokens
(--page-width-*, --page-fields-column) are the consuming app's, px
references as fallbacks. Shared helpers exported from payload/shared.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T5GJo9SrABCxiZpYHWzrHg
Dynogic added a commit to Dynogic/payload that referenced this pull request Sep 5, 2026
…ocuments and tabs, stamped as data-width-tier"

This reverts commit ee0e6e7.
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.

1 participant