ionic-team / ionic-team/ionic-docs

content: improve components docs for the alignment property

Đang mở
#3,818 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
content
Ngôn ngữ chính
MDX
Star
621
Fork
3.2k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
86

Mô tả

### URL

https://ionicframework.com/docs/api/

### Issue Description

The following components have the `alignment` property documented at these links:
- [Checkbox](https://ionicframework.com/docs/api/checkbox#alignment)
- [Radio](https://ionicframework.com/docs/api/radio#alignment)
- [Toggle](https://ionicframework.com/docs/api/toggle#alignment)

The playground examples currently only demonstrate how the `alignment` property works horizontally when the label placement is set to `stacked`. However, they do not show how the `alignment` property affects vertical alignment with the `fixed`, `start`, and `end` label placements.

We should add examples demonstrating how `alignment` works vertically, similar to the following, for each component:

```html


This is a really long label with a lot of text, causing the label to span
multiple lines. As a result, the checkbox will be vertically aligned in
the center, rather than at the start of the label.

```

> [!NOTE]
> This is just one example of how to illustrate the usage. It doesn't have to be exactly like the example provided.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start with the API documentation playground examples for Checkbox, Radio, and Toggle at the linked alignment sections. Compare the existing stacked-label examples, then add vertical-alignment examples for the fixed, start, and end label placements; done means each component demonstrates the alignment behavior clearly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
72/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.