Skip to content

Commit

Permalink
Merge pull request #4 from nasdas-dev/patch-1
Browse files Browse the repository at this point in the history
Make whole accordion clickable
  • Loading branch information
Vitalsine85 committed Nov 10, 2021
2 parents 8082f5c + d8f32d7 commit c600bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/accordionItem.js
Expand Up @@ -7,8 +7,8 @@ const AccordionItem = props => {
}
return (
<div className={`accrodion ${status === true ? 'active' : ''}`}>
<div className="accrodion-inner">
<div className="accrodion-title" role="button" tabIndex="0" onKeyDown={handleClick} onClick={handleClick}>
<div className="accrodion-inner" onKeyDown={handleClick} onClick={handleClick}>
<div className="accrodion-title" role="button" tabIndex="0">
<h4>{props.title}</h4>
</div>
{status === true ? (
Expand Down

0 comments on commit c600bf8

Please sign in to comment.