Skip to content

Commit

Permalink
change(accordion): added menu-item-text class to accordion tab span
Browse files Browse the repository at this point in the history
- like we do with the rest of the templates
  • Loading branch information
ichim-david committed Mar 26, 2024
1 parent a4cb7fc commit 6dad8b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/templates/accordion/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ const View = (props) => {
const accordionConfig = config.blocks.blocksConfig[
TABS_BLOCK
].variations.filter((v, _i) => v.id === data.variation);
const { icons, semanticIcon, transformWidth = 800 } =
accordionConfig?.[0] || {};
const {
icons,
semanticIcon,
transformWidth = 800,
} = accordionConfig?.[0] || {};

const tabsContainer = React.useRef();
const [mounted, setMounted] = React.useState(false);
Expand Down Expand Up @@ -82,7 +85,7 @@ const View = (props) => {
tabIndex={tabIndex}
/>
) : (
<span>{title || defaultTitle}</span>
<span className="menu-item-text">{title || defaultTitle}</span>
)}
</>
),
Expand Down

0 comments on commit 6dad8b1

Please sign in to comment.