diff --git a/.changeset/many-foxes-invent.md b/.changeset/many-foxes-invent.md new file mode 100644 index 0000000000..01f5edf04d --- /dev/null +++ b/.changeset/many-foxes-invent.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": patch +--- + +``: remove deprecated color-palette property diff --git a/elements/rh-spinner/rh-spinner.ts b/elements/rh-spinner/rh-spinner.ts index 399d2d2db6..f59e15fca0 100644 --- a/elements/rh-spinner/rh-spinner.ts +++ b/elements/rh-spinner/rh-spinner.ts @@ -13,11 +13,8 @@ export type SpinnerSize = RhSpinner['size']; * A spinner indicates that an action is in progress. * It appears as an animated circle over the section that is loading, * and it may include a text label - * * @summary Notifies users their action is being processed or loaded - * * @slot - Optional text label below the animated circle. - * */ @customElement('rh-spinner') export class RhSpinner extends LitElement { @@ -43,22 +40,6 @@ export class RhSpinner extends LitElement { `; } - - // START hack for removal of contextProvider. delete for version 2.0 - /** - * @deprecated Use Color context instead. See https://ux.redhat.com/foundations/color/context/ - */ - @property({ attribute: 'color-palette' }) colorPalette?: string; - - willUpdate() { - const [cp] = this.getAttribute('color-palette')?.match(/^dark|^light/) ?? []; - if (cp) { - this.on = cp as 'dark' | 'light'; - // eslint-disable-next-line no-console - console.warn(`[rh-spinner]: do not use color-palette, it is deprecated`); - } - } - // END hack } declare global {