Skip to content

Commit

Permalink
Update components to import Component
Browse files Browse the repository at this point in the history
Components that extended `GOVUKFrontendComponent` now extend `Component`
from `component.mjs`.
  • Loading branch information
patrickpatrickpatrick committed Nov 20, 2024
1 parent 4dbcb4a commit 03d0100
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Component } from '../../component.mjs'
import { ElementError } from '../../errors/index.mjs'
import { GOVUKFrontendComponent } from '../../govuk-frontend-component.mjs'

/**
* Checkboxes component
*
* @preserve
*/
export class Checkboxes extends GOVUKFrontendComponent {
export class Checkboxes extends Component {
/** @private */
$inputs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { getBreakpoint } from '../../common/index.mjs'
import { Component } from '../../component.mjs'
import { ElementError } from '../../errors/index.mjs'
import { GOVUKFrontendComponent } from '../../govuk-frontend-component.mjs'

/**
* Header component
*
* @preserve
*/
export class Header extends GOVUKFrontendComponent {
export class Header extends Component {
/** @private */
$menuButton

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Component } from '../../component.mjs'
import { ElementError } from '../../errors/index.mjs'
import { GOVUKFrontendComponent } from '../../govuk-frontend-component.mjs'

/**
* Radios component
*
* @preserve
*/
export class Radios extends GOVUKFrontendComponent {
export class Radios extends Component {
/** @private */
$inputs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { getBreakpoint } from '../../common/index.mjs'
import { Component } from '../../component.mjs'
import { ElementError } from '../../errors/index.mjs'
import { GOVUKFrontendComponent } from '../../govuk-frontend-component.mjs'

/**
* Service Navigation component
*
* @preserve
*/
export class ServiceNavigation extends GOVUKFrontendComponent {
export class ServiceNavigation extends Component {
/** @private */
$menuButton

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { getFragmentFromUrl, setFocus } from '../../common/index.mjs'
import { Component } from '../../component.mjs'
import { ElementError } from '../../errors/index.mjs'
import { GOVUKFrontendComponent } from '../../govuk-frontend-component.mjs'

/**
* Skip link component
*
* @preserve
* @augments GOVUKFrontendComponent<HTMLAnchorElement>
* @augments Component<HTMLAnchorElement>
*/
export class SkipLink extends GOVUKFrontendComponent {
export class SkipLink extends Component {
static elementType = HTMLAnchorElement

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/govuk-frontend/src/govuk/components/tabs/tabs.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { getBreakpoint, getFragmentFromUrl } from '../../common/index.mjs'
import { Component } from '../../component.mjs'
import { ElementError } from '../../errors/index.mjs'
import { GOVUKFrontendComponent } from '../../govuk-frontend-component.mjs'

/**
* Tabs component
*
* @preserve
*/
export class Tabs extends GOVUKFrontendComponent {
export class Tabs extends Component {
/** @private */
$tabs

Expand Down

0 comments on commit 03d0100

Please sign in to comment.