Skip to content

Commit

Permalink
fix: add role="button" props to div (ant-design#44494)
Browse files Browse the repository at this point in the history
* fix: add role="button" props to div

* fix: fix
  • Loading branch information
li-jia-nan authored Aug 29, 2023
1 parent c70ba36 commit fae1fef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .dumi/theme/builtins/Previewer/CodePreviewer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
import React, { useContext, useEffect, useRef, useState } from 'react';
import {
CheckOutlined,
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit fae1fef

Please sign in to comment.