ant-design Caption missing in Table Component

jmo0nnb3  于 2022-12-31  发布在  其他
关注(0)|答案(6)|浏览(172)
  • I have searched the issues of this repository and believe that this is not a duplicate.

https://github.com/ant-design/ant-design

Steps to reproduce

no option exists

What is expected?

We need a caption tag for accessibility

http://www.edition-w3.de/TR/1999/REC-html401-19991224/struct/tables.html#h-11.4

What is actually happening?

no caption tag

EnvironmentInfo
antd4.1.5
React16
SystemWindows
BrowserChrome

thank you

fsi0uk1n

fsi0uk1n2#

English reference for those interested: https://www.w3.org/TR/html401/struct/tables.html#h-11.2.2

bogh5gae

bogh5gae3#

Caption is required for accessibility / screenreader

wfypjpf4

wfypjpf44#

Hi, is this something that could be implement in the near future?
I've tried to render a caption with the property title:
<Table columns={columns} dataSource={data} title={() => <caption>Teste</caption>} />

But it's useless, since the NVDA doesn't read as caption.

nr9pn0ug

nr9pn0ug5#

@plmsz I agree, we need to think more about accessibility in general

m3eecexj

m3eecexj6#

Any actions planned on this issue?

相关问题