Skip to content

Conversation

@ETLaurent
Copy link
Contributor

@ETLaurent ETLaurent commented Dec 26, 2025

Summary

  • Implement the possibility to add style to widgets.
  • Move Palette into to core and rename it "Global Styles".
  • Provide default styles presets to easily share styling configuration on widgets and global styles.
  • Add the possibility to render styles manually in templates thanks to nunjucks helpers.
  • Provide styles for external front such as Astro.

What are the specific steps to test this change?

For example:

  1. Run the website and log in as an admin
  2. Open a piece manager modal and select several pieces
  3. Click the "Archive" button on the top left of the manager and confirm that it should proceed
  4. Check that all pieces have been archived properly

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated (the box field type)
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

ETLaurent and others added 30 commits December 4, 2025 18:06
PRO-8593: object types support for styles
ETLaurent and others added 11 commits December 19, 2025 14:31
* remove palette migrations

* add warning

* mock

* Revert "mock"

This reverts commit 496feca.

* only warn if palette exists

* remove duplicated tips

---------

Co-authored-by: ETLaurent <[email protected]>
* Add core widget styles, add missing tests

* Simplify alignment preset
* fix properties keys order to make valid css

* adapt tests

* fix

* add changelog

---------

Co-authored-by: ETLaurent <[email protected]>
@ETLaurent ETLaurent added the don't merge yet This PR is meant to be merged, but not right away label Dec 26, 2025
@ETLaurent ETLaurent changed the title Feature styles styles feature Dec 26, 2025
ETLaurent and others added 5 commits December 29, 2025 17:00
* wip use helpers for columns

* renders columns style when logout / preview

* removes logs

* moves vue styles logic into composable

* uses new styles composable in rich text editor component

* removes logs, style tag before div

* adds AposGridColumn

* uses AposGrid Column in grid layout for real content columns

* improves grid column component for content

* wip reworks grid manager / layout

* tets styles for layout column

* moves recompute styles logic into composable and use it for columns too

* removes comments

* do not parse object if no styles fields at all

* uses method instead of computed to render content items elements

* handles livepreview styles for contextual styles widgets (rich text / columns)

* removes comments, test styles

* fixes style rendered twice in column widget nunjucks template
* astro: add widget styles feature

---------

Co-authored-by: ETLaurent <[email protected]>
@ETLaurent ETLaurent requested a review from myovchev December 31, 2025 12:21
@ETLaurent ETLaurent removed the don't merge yet This PR is meant to be merged, but not right away label Dec 31, 2025
@ETLaurent
Copy link
Contributor Author

ETLaurent and others added 6 commits December 31, 2025 11:01
…the text (#5259)

* part 1: widget default data should include schema fields even for contextual widgets

* part 2: don't discard style changes when we emit rich text changes
* Refactor postcss plugin, export vanilla JS function for browser/nodejs usage

* Typo - the vanilla function returns a string, not an object
@myovchev myovchev marked this pull request as ready for review January 8, 2026 18:31
@myovchev myovchev marked this pull request as draft January 8, 2026 18:31
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