From 62ddf13a6afcfe8e12b60c2c25e2ba98521a01bf Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 21 May 2025 13:34:24 -0400 Subject: [PATCH] Rename `vertical` to `orientation="vertical"`; fixes #674 (#963) * vertical => orientation="vertical"; fixes #674 * add issue * Update divider styles and docs to use `orientation='vertical'` * Update split panel styles and docs to use `orientation='vertical'` * Update remaining docs and patterns examples to `orientation='vertical'` --------- Co-authored-by: lindsaym-fa --- docs/docs/components/divider.md | 8 ++--- docs/docs/components/split-panel.md | 8 ++--- docs/docs/patterns/app/activity-log.md | 8 ++--- docs/docs/patterns/app/comments.md | 2 +- docs/docs/patterns/app/description-list.md | 4 +-- docs/docs/patterns/ecommerce/order-summary.md | 2 +- .../patterns/ecommerce/product-preview.md | 2 +- docs/docs/resources/changelog.md | 1 + src/components/divider/divider.css | 4 +-- src/components/divider/divider.test.ts | 4 +-- src/components/divider/divider.ts | 8 ++--- src/components/split-panel/split-panel.css | 10 +++---- .../split-panel/split-panel.test.ts | 14 ++++----- src/components/split-panel/split-panel.ts | 30 +++++++++++-------- 14 files changed, 56 insertions(+), 49 deletions(-) diff --git a/docs/docs/components/divider.md b/docs/docs/components/divider.md index eb7abffcd..30bbed5e0 100644 --- a/docs/docs/components/divider.md +++ b/docs/docs/components/divider.md @@ -39,16 +39,16 @@ Use the `--spacing` custom property to change the amount of space between the di ``` -### Vertical +### Orientation -Add the `vertical` attribute to draw the divider in a vertical orientation. The divider will span the full height of its container. Vertical dividers work especially well inside of a flex container. +The default orientation for dividers is `horizontal`. Set `orientation` attribute to `vertical` to draw a vertical divider. The divider will span the full height of its container. ```html {.example}
First - + Middle - + Last
``` diff --git a/docs/docs/components/split-panel.md b/docs/docs/components/split-panel.md index e604a9ac5..adfaf1f04 100644 --- a/docs/docs/components/split-panel.md +++ b/docs/docs/components/split-panel.md @@ -80,12 +80,12 @@ To set the initial position in pixels instead of a percentage, use the `position ``` -### Vertical +### Orientation -Add the `vertical` attribute to render the split panel in a vertical orientation where the start and end panels are stacked. You also need to set a height when using the vertical orientation. +Set the `orientation` attribute to `vertical` and provide a height to render the split panel in a vertical orientation where the start and end panels are stacked. ```html {.example} - +
- +
- +
- +
- +