Skip to content

Commit

Permalink
fix(slug-revert): use prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Jan 24, 2024
1 parent c58426b commit 2ed6397
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ class CDSDatePickerInput extends FocusMixin(LitElement) {
this.shadowRoot
?.querySelector("slot[name='slug']")
?.classList.toggle(
'cds--slug--revert',
this.querySelector('cds-slug')?.hasAttribute('revert-active')
`${prefix}--slug--revert`,
this.querySelector(`${prefix}-slug`)?.hasAttribute('revert-active')
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,8 @@ class CDSDropdown extends ValidityMixin(
this.shadowRoot
?.querySelector("slot[name='slug']")
?.classList.toggle(
'cds--slug--revert',
this.querySelector('cds-slug')?.hasAttribute('revert-active')
`${prefix}--slug--revert`,
this.querySelector(`${prefix}-slug`)?.hasAttribute('revert-active')
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ class CDSSelect extends FormMixin(LitElement) {
this.shadowRoot
?.querySelector("slot[name='slug']")
?.classList.toggle(
'cds--slug--revert',
this.querySelector('cds-slug')?.hasAttribute('revert-active')
`${prefix}--slug--revert`,
this.querySelector(`${prefix}-slug`)?.hasAttribute('revert-active')
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ class CDSTextInput extends ValidityMixin(FormMixin(LitElement)) {
this.shadowRoot
?.querySelector("slot[name='slug']")
?.classList.toggle(
'cds--slug--revert',
this.querySelector('cds-slug')?.hasAttribute('revert-active')
`${prefix}--slug--revert`,
this.querySelector(`${prefix}-slug`)?.hasAttribute('revert-active')
);
}

Expand Down

0 comments on commit 2ed6397

Please sign in to comment.