You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AccordionItem component uses an h2 tag to render the title of the accordion item. This can ruin the SEO of a page since h2 is ranked right after h1.
There must be an option to change that specific tag to anything else, maybe a span or etc. Currently there is no option to change that and it is potentially harmful for the semantic ranking of the page...
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Simply use the Accordion and AccordionItem components and check the elements tab in your dev tools in the browser and you can see that the title given to the AccordionItem component is being rendered as an h2 tag.
Expected behavior
An option must exist to override the default (which is a very bold and careless choice to have h2 as default) h2 tag used by the AccordionItem component for rendering the accordion item title, to a less sensitive tag in the page.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered:
parsasabetz
changed the title
[BUG] - No option to change AccordionItem main tag from h2 to something else
[BUG] - No option to change AccordionItem's title tag from h2 to something else
May 4, 2024
NextUI Version
2.2.9
Describe the bug
The
AccordionItem
component uses anh2
tag to render the title of the accordion item. This can ruin the SEO of a page sinceh2
is ranked right afterh1
.There must be an option to change that specific tag to anything else, maybe a
span
or etc. Currently there is no option to change that and it is potentially harmful for the semantic ranking of the page...Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Simply use the
Accordion
andAccordionItem
components and check the elements tab in your dev tools in the browser and you can see that thetitle
given to theAccordionItem
component is being rendered as anh2
tag.Expected behavior
An option must exist to override the default (which is a very bold and careless choice to have
h2
as default)h2
tag used by theAccordionItem
component for rendering the accordion item title, to a less sensitive tag in the page.Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: