Skip to content

Commit

Permalink
fix(a11y): Copy menu entries should be implemented as buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and icewind1991 committed Jun 21, 2023
1 parent dad002f commit ea99fca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Components/LogTable.css
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 ea99fca

Please sign in to comment.