Skip to content

Commit

Permalink
Merge pull request #884 from nextcloud/fix/a11y-copy-menu
Browse files Browse the repository at this point in the history
fix(a11y): `Copy` menu entries should be implemented as buttons
  • Loading branch information
icewind1991 committed Jun 21, 2023
2 parents dad002f + a230095 commit c4376eb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion js/logreader-main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/logreader-main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/logreader-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/logreader-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Components/LogTable.css
Expand Up @@ -115,7 +115,7 @@
margin: 0;
overflow: visible;

button {
> button {
position: relative;
opacity: 0;
transition: opacity 0.5s;
Expand Down
8 changes: 4 additions & 4 deletions src/Components/LogTable.js
Expand Up @@ -89,16 +89,16 @@ export class LogTable extends Component {
className={style.copyMenu + ' popovermenu bubble open menu'}>
<ul>
<li>
<a className="menuitem icon icon-clippy"
<button className="menuitem icon icon-clippy"
onClick={() => copyEntry(true)}>
{t('logreader', 'Copy raw')}
</a>
</button>
</li>
<li>
<a className="menuitem icon icon-clippy"
<button className="menuitem icon icon-clippy"
onClick={() => copyEntry(false)}>
{t('logreader', 'Copy formatted')}
</a>
</button>
</li>
</ul>
</div> :
Expand Down

0 comments on commit c4376eb

Please sign in to comment.