Tabs styling doesn't work with without javascript enabled #5659
Labels
awaiting triage
Needs triaging by team
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
Description of the issue
When using the govuk-frontend styling without javascript enabled then the Tabs styling does not get applied.
This is because
components/tabs/_index.scss
has most of the styling inside of the class.govuk-frontend-supported
which is only applied when the javascript is enabled.Seems like a bug because all the other components/styles I've used so far work without issue. I can get the tabs to work for me by adding this class manually
.govuk-frontend-supported
but since I am not actually using the javascript (for which this className is used for) this is a bit of a hacky workaround.Steps to reproduce the issue
Create an app with styling imported:
@import "govuk-frontend/dist/govuk/all";
Do not add/enable javascript code.
Try to render the Tabs (see any example HTML here https://design-system.service.gov.uk/components/tabs/)
Actual vs expected behaviour
Actual: Links appear without Tab styling, no grey boxes, no borders
Expected: Tabs appear with styling as in the demos here https://design-system.service.gov.uk/components/tabs/
Environment (where applicable)
The text was updated successfully, but these errors were encountered: