Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Resolved lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KV106606Viswanath committed Jun 26, 2023
1 parent fbc98dc commit cc70e7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/terra-section-header/src/SectionHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,20 +153,20 @@ class SectionHeader extends React.Component {
/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable jsx-a11y/no-static-element-interactions */

//Function to use Arrange component
// Function to use Arrange component
const ArrangeComponent = () => (
<Arrange
fitStart={onClick && accordionIcon}
fill={<span aria-hidden={(onClick !== undefined)} className={cx('title', 'titleBlock')}>{headerText}</span>}
className={cx('title-arrange')}
/>
)
);

const buttonAttributes = (onClick) ? { 'aria-expanded': isOpen, 'aria-label': headerText } : undefined;

return (
<Element {...attributes} className={sectionHeaderClassNames} aria-label={!onClick ? headerText : undefined}>
{onClick && accordionIcon ? (
{onClick && accordionIcon ? (
<button {...buttonAttributes} type="button" tabIndex="-1" className={cx('arrange-wrapper toggleButton')}>
<ArrangeComponent />
</button>
Expand Down

0 comments on commit cc70e7e

Please sign in to comment.