mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix: upgrade rc-table for a11y issue (#39700)
* fix: upgrade rc-table for a11y issue * test: add test case for a11y
This commit is contained in:
parent
2fc3ceeaaa
commit
b5f27c8982
@ -353,4 +353,11 @@ describe('Table', () => {
|
||||
|
||||
expect(container.querySelector('thead th')).toMatchSnapshot();
|
||||
});
|
||||
|
||||
// https://github.com/react-component/table/pull/855
|
||||
it('support aria-* and data-*', async () => {
|
||||
const { container } = render(<Table aria-label="label" data-number="123" />);
|
||||
expect(container.querySelector('table')?.getAttribute('aria-label')).toBe('label');
|
||||
expect(container.querySelector('.ant-table')?.getAttribute('data-number')).toBe('123');
|
||||
});
|
||||
});
|
||||
|
@ -144,7 +144,7 @@
|
||||
"rc-slider": "~10.0.0",
|
||||
"rc-steps": "~6.0.0-alpha.2",
|
||||
"rc-switch": "~4.0.0",
|
||||
"rc-table": "~7.28.2",
|
||||
"rc-table": "~7.28.3",
|
||||
"rc-tabs": "~12.5.1",
|
||||
"rc-textarea": "~0.4.5",
|
||||
"rc-tooltip": "~5.2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user