Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlockStyleWrapper aware of block themes #6445

Merged
merged 11 commits into from
Oct 29, 2024
Merged

Conversation

sneridagh
Copy link
Member


If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.

Closes #

Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit ea8bb4f
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/6720b54217111d0008d60804

@sneridagh sneridagh marked this pull request as ready for review October 28, 2024 21:11
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
docs/source/upgrade-guide/index.md Outdated Show resolved Hide resolved
packages/volto/news/6445.breaking Outdated Show resolved Hide resolved
* @param {string} prefix The prefix (could be dragged from a recursive call, initially empty)
* @return {Object} The style object ready to be passed as prop
*/
export const buildStyleObjectFromData = (obj = {}, prefix = '') => {
export const buildStyleObjectFromData = (data = {}, prefix = '') => {
Copy link
Member

Choose a reason for hiding this comment

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

You could easily make it non-breaking by making it accept either obj or data

Copy link
Member Author

@sneridagh sneridagh Oct 29, 2024

Choose a reason for hiding this comment

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

Done, I had to detect that we have a full block by testing if @type is present. Take a look now.

packages/volto/src/helpers/Blocks/Blocks.test.js Outdated Show resolved Hide resolved
Co-authored-by: Steve Piercy <web@stevepiercy.com>
@sneridagh sneridagh force-pushed the stylewrapperenhancements branch 2 times, most recently from 810ad5a to 4176f81 Compare October 29, 2024 08:20
@sneridagh sneridagh merged commit ee3c972 into main Oct 29, 2024
68 checks passed
@sneridagh sneridagh deleted the stylewrapperenhancements branch October 29, 2024 10:23
sneridagh added a commit that referenced this pull request Oct 30, 2024
* main: (111 commits)
  Moved `applyBlockDefaults` one component up so the style is computed correctly (#6451)
  Fix useSelector is returned a different result when called with the s… (#6450)
  Fix page changes not being announced by assistive technology when navigating using the client-side router (#5288)
  BlockStyleWrapper aware of block themes (#6445)
  A11y: Wrap ToC Block within nav tag (#6084)
  Fix backend error when there is no query supplied (#6423)
  Added upgrade guide fix for HMR (#6446)
  Fix CSS lint in Volto Slate (#6444)
  Release 18.0.0-alpha.47
  Release generate-volto 9.0.0-alpha.20
  Release @plone/scripts 3.7.0
  Release @plone/registry 2.0.0-alpha.0
  Improve @plone/registry release-it config
  `@plone/registry` as ESM module, move to TS, complete documentation (#6399)
  [Next.js] Better Vercel deployment (#6441)
  Replace all `yarn` appearences with `pnpm` (#6433)
  Add deprecation notices to the Upgrade guide (#6426)
  Clean up #6422 (#6443)
  Rename page title from Frontend to Volto UI (#6438)
  URL-Management control panel: Add missing translations (#6436)
  ...
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.

3 participants