mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
fix: add role="button" props to div (#44494)
* fix: add role="button" props to div * fix: fix
This commit is contained in:
parent
c70ba36540
commit
fae1fef77d
@ -1,4 +1,3 @@
|
||||
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
|
||||
import React, { useContext, useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
CheckOutlined,
|
||||
@ -542,7 +541,12 @@ createRoot(document.getElementById('container')).render(<Demo />);
|
||||
styleCode={style}
|
||||
onCodeTypeChange={setCodeType}
|
||||
/>
|
||||
<div tabIndex={0} className={styles.codeHideBtn} onClick={() => setCodeExpand(false)}>
|
||||
<div
|
||||
tabIndex={0}
|
||||
role="button"
|
||||
className={styles.codeHideBtn}
|
||||
onClick={() => setCodeExpand(false)}
|
||||
>
|
||||
<UpOutlined />
|
||||
<FormattedMessage id="app.demo.code.hide.simplify" />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user