Tencent / Tencent/tdesign-react

[Divider] 期望自定义子元素的父级标签不是 span

Open
#2,367 3 comments 0 reactions 1 assignee View on GitHub

@honkinglin is already working on this.

Since Jul 13, 2023.

💪🏻 enhancement
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

这个功能解决了什么问题

Divider 组件支持 children 或 content 属性传入 TNode 类型的元素,当子元素是 div 块级元素时,由于父级是 span 行内元素,可能会不便于子元素语义化。

Demo
image

你建议的方案是什么

期望自定义子元素的父级标签不是 span。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.