Skip to content

Commit

Permalink
fix(a11y): reply placeholder not accessible (#3793)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
  • Loading branch information
SychO9 authored Apr 16, 2023
1 parent 4901c58 commit aa33cfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/core/js/src/forum/components/ReplyPlaceholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export default class ReplyPlaceholder extends Component {
};

return (
<article className="Post ReplyPlaceholder" onclick={reply}>
<header className="Post-header">
<button className="Post ReplyPlaceholder" onclick={reply}>
<span className="Post-header">
{avatar(app.session.user, { className: 'PostUser-avatar' })} {app.translator.trans('core.forum.post_stream.reply_placeholder')}
</header>
</article>
</span>
</button>
);
}

Expand Down
3 changes: 3 additions & 0 deletions framework/core/less/forum/Post.less
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@
border: 2px dashed var(--control-bg);
color: var(--muted-color);
border-radius: 10px;
background-color: transparent;
width: 100%;
display: flex;

.Post-header {
margin: 0;
Expand Down

0 comments on commit aa33cfd

Please sign in to comment.