Closed ramsharma-prog closed 2 years ago
Hi @ramsharma-prog,
Can I check where you copied this HTML from?
The code you've provided appears to contain various classes that are inserted dynamically by JavaScript. In particular, the govuk-tabs__list-item--selected
and govuk-tabs__panel--hidden
classes shouldn't be present in your authored HTML, and are probably why the tabs aren't changing correctly.
Hi @querkmachine The code was amended from tabs component's HTML to use for a service however if I copy & paste the raw HTML from tabs component, tabs still doesn't not switch in between unless I am missing something? Normally components work as it is when the raw HTML is copied over to an IDE.
Is the JavaScript module for the tabs component being loaded? https://frontend.design-system.service.gov.uk/get-started/#5-get-the-javascript-working
@querkmachine There was an error in the code. It's working now! Appreciate your response & help!
Issue
Code:
Contents
{{ title['section_name'] }}
{{criteria}}