diff --git a/.changeset/tough-trainers-fail.md b/.changeset/tough-trainers-fail.md new file mode 100644 index 0000000000..2dc5a9b6d5 --- /dev/null +++ b/.changeset/tough-trainers-fail.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": patch +--- + +``: adds `color-palette` attribute back with deprecation notice diff --git a/elements/rh-cta/rh-cta.ts b/elements/rh-cta/rh-cta.ts index c2b4b126fa..6057bd52a3 100644 --- a/elements/rh-cta/rh-cta.ts +++ b/elements/rh-cta/rh-cta.ts @@ -7,6 +7,7 @@ import { Logger } from '@patternfly/pfe-core/controllers/logger.js'; import { DirController } from '../../lib/DirController.js'; +import { type ColorPalette } from 'lib/context/color/provider.js'; import { colorContextConsumer, type ColorTheme } from '../../lib/context/color/consumer.js'; import style from './rh-cta.css'; @@ -40,7 +41,15 @@ function isButton(element: Element): element is HTMLButtonElement { * * @summary Directs users to other pages or displays extra content * @slot - * We expect an anchor tag, `` with an `href`, to be the first child inside `rh-cta` element. Less preferred but allowed for specific use-cases include: `