Skip to content

Commit

Permalink
Clarify where CSS custom properties are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Dec 15, 2023
1 parent 562cfdd commit 05b819a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Header extends GOVUKFrontendComponent {
if (!breakpoint.value) {
throw new ElementError({
componentName: 'Header',
identifier: `CSS custom property (\`${breakpoint.property}\`)`
identifier: `CSS custom property (\`${breakpoint.property}\`) on pseudo-class \`:root\``
})
}

Expand Down
2 changes: 1 addition & 1 deletion packages/govuk-frontend/src/govuk/components/tabs/tabs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Tabs extends GOVUKFrontendComponent {
if (!breakpoint.value) {
throw new ElementError({
componentName: 'Tabs',
identifier: `CSS custom property (\`${breakpoint.property}\`)`
identifier: `CSS custom property (\`${breakpoint.property}\`) on pseudo-class \`:root\``
})
}

Expand Down

0 comments on commit 05b819a

Please sign in to comment.