Skip to content

Conversation

@ncamera
Copy link
Collaborator

@ncamera ncamera commented Dec 3, 2024

Changes we propose in this PR:

  • [ch-tab-render] Removed the direction property in favor of the tabListPosition property.
    The new tabListPosition property allows users have more control over the position of the ch-tab-render's tab-list.

  • [ch-flexible-layout-render] Removed tabDirection and tabPosition properties in favor of the tabListPosition property.

  • [ch-flexible-layout-render] Simplified part exporting to avoid exporting parts that are not used.

  • [ch-tab-render][ch-flexible-layout-render] Refactor the styling with parts to improve semantics and make the ch-tab-render and ch-flexible-layout-render more customizables.

Breaking changes

  • [ch-tab-render] Removed the direction property in favor of the tabListPosition property. Migrating from direction to tabListPosition:

    • direction = "block" ---> tabListPosition = "block-start"
    • direction = "inline" ---> tabListPosition = "inline-start"
  • [ch-tab-render] The following parts were renamed:

    • button ---> tab
    • page ---> panel
    • page-container ---> panel-container
  • [ch-tab-render] Removed the drag-preview and drag-preview-element parts in favor of the tab dragging part.

  • [ch-tab-render] Removed the drag-preview--outside-tab-list part in favor of the dragging-out-of-tab-list part.

  • [ch-tab-render] Removed the drag-preview--inside-tab-list__block part in favor of the dragging-over-tab-list block part.

  • [ch-tab-render] Removed the drag-preview--inside-tab-list__inline part in favor of the dragging-over-tab-list inline part.

  • [ch-tab-render] Removed block-size: 100% CSS property from the ch-tab-render, since it can break margin styling. Use display: grid in the ch-tab-render container or a different solution to stretch the ch-tab-render to the parent container size.

  • [ch-flexible-layout-render] Same breaking changes applies for the ch-flexible-layout-render.

…perty

The new "tabListPosition" property allows users have more control over the position of the ch-tab-render's tab-list.

Also, refactor the styling with parts to improve semantics and make the ch-tab-render more customizable.

Breaking changes:
 - Removed the "direction" property in favor of the "tabListPosition" property. Migrating from "direction" to "tabListPosition":
  + direction = "block" ---> tabListPosition = "block-start"
  + direction = "inline" ---> tabListPosition = "inline-start"

 - The following parts were renamed:
  + "button" ---> "tab"
  + "page" ---> "panel"
  + "page-container" ---> "panel-container"

 - Removed the "drag-preview" and "drag-preview-element" parts in favor of the "tab dragging" part.

 - "Removed the "drag-preview--outside-tab-list" part in favor of the "dragging-out-of-tab-list" part.

 - "Removed the "drag-preview--inside-tab-list__block" part in favor of the "dragging-over-tab-list block" part.

 - "Removed the "drag-preview--inside-tab-list__inline" part in favor of the "dragging-over-tab-list inline" part.

 - Removed "block-size: 100%" CSS property from the ch-tab-render, since it can break margin styling. Use "display: grid" in the ch-tab-render container or a different solution to stretch the ch-tab-render to the parent container size.
…stPosition property

Same breaking changes applies for the ch-flexible-layout-render.

Simplified part exporting to avoid exporting parts that are not used.
@netlify
Copy link

netlify bot commented Dec 3, 2024

Deploy Preview for gx-chameleon ready!

Name Link
🔨 Latest commit 6b7a089
🔍 Latest deploy log https://app.netlify.com/sites/gx-chameleon/deploys/674e76c1f90ddc0008940399
😎 Deploy Preview https://deploy-preview-460--gx-chameleon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ncamera ncamera added feature Feature implementation pull request target: minor This PR is targeted for the next minor release breaking changes refactoring Issue that involves refactoring or code-cleanup labels Dec 3, 2024
@ncamera ncamera merged commit e470c71 into main Dec 3, 2024
7 checks passed
@ncamera ncamera deleted the feat/tab-flexible-layout-styling-interface branch December 3, 2024 03:21
@ncamera ncamera changed the title [ch-tab-render][ch-flexible-layout-render] Remove the direction property in favor of the tabListPosition property [ch-tab-render][ch-flexible-layout-render] Remove the direction property in favor of the tabListPosition property and improve customization Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes feature Feature implementation pull request refactoring Issue that involves refactoring or code-cleanup target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants